Lines Matching refs:interface
16 #include "chromeos-dbus-bindings/interface.h"
27 const std::vector<Interface>& interfaces,
30 CHECK(!interfaces.empty()) << "At least one interface must be provided";
33 for (const auto& interface : interfaces) {
34 text.AddLine(StringPrintf("// - %s", interface.name.c_str()));
51 for (const auto& interface : interfaces)
52 GenerateInterfaceAdaptor(interface, &text);
61 const Interface& interface,
63 NameParser parser{interface.name};
72 text->AddLine(StringPrintf("// Interface definition for %s.",
74 text->AddComments(interface.doc_string);
79 AddInterfaceMethods(interface, text);
84 text->AddLine(StringPrintf("// Interface adaptor for %s.",
90 AddRegisterWithDBusObject(itf_name, interface, text);
91 AddSendSignalMethods(interface, text);
92 AddPropertyMethodImplementation(interface, text);
93 if (!interface.path.empty()) {
98 interface.path.c_str()));
107 AddSignalDataMembers(interface, text);
108 AddPropertyDataMembers(interface, text);
128 text->AddLine(StringPrintf("%s(%s* interface) : interface_(interface) {}",
135 const Interface& interface,
144 interface.name.c_str()), kLineContinuationOffset);
145 RegisterInterface(itf_name, interface, text);
152 const Interface& interface,
154 if (!interface.methods.empty())
156 for (const auto& method : interface.methods) {
159 case Interface::Method::Kind::kSimple:
162 case Interface::Method::Kind::kNormal:
168 case Interface::Method::Kind::kAsync:
174 case Interface::Method::Kind::kRaw:
189 if (!interface.signals.empty())
191 for (const auto& signal : interface.signals) {
201 if (!interface.properties.empty())
203 for (const auto& property : interface.properties) {
224 NameParser{interface.name}.MakeAdaptorName(false).c_str(),
237 void AdaptorGenerator::AddInterfaceMethods(const Interface& interface,
241 if (!interface.methods.empty())
244 for (const auto& method : interface.methods) {
254 case Interface::Method::Kind::kSimple:
260 case Interface::Method::Kind::kNormal:
266 case Interface::Method::Kind::kAsync: {
282 case Interface::Method::Kind::kRaw:
327 const Interface& interface,
332 if (!interface.signals.empty())
335 for (const auto& signal : interface.signals) {
378 void AdaptorGenerator::AddSignalDataMembers(const Interface& interface,
383 for (const auto& signal : interface.signals) {
417 const Interface& interface,
422 for (const auto& property : interface.properties) {
480 void AdaptorGenerator::AddPropertyDataMembers(const Interface& interface,
485 for (const auto& property : interface.properties) {
494 if (!interface.properties.empty())