Home | History | Annotate | Download | only in chromium

Lines Matching refs:method

37   Subclasses should define the constructor to build the property and method
59 // CppBoundClass lets you map Javascript method calls and property accesses
60 // directly to C++ method calls and CppVariant* variable access.
85 // fallback method.
102 // Used by a test. Returns true if a method with name |name| exists,
114 // Callback for "void T::method(const CppArguemntList&, CppVariant*)"
118 MemberCallback(T* object, MethodType method)
120 , m_method(method) {}
132 // Callback class for "void T::method(CppVariant*)"
136 MemberGetterCallback(T* object, MethodType method)
138 , m_method(method) {}
147 // Bind the Javascript method called the string parameter to the C++ method.
151 // method on the current object. Though not verified here, |method|
152 // must be a method of this CppBoundClass subclass.
154 void bindMethod(const std::string& name, void (T::*method)(const CppArgumentList&, CppVariant*))
156 Callback* callback = new MemberCallback<T>(static_cast<T*>(this), method);
165 // property on the current object. Though not verified here, |method|
166 // must be a method of this CppBoundClass subclass.
168 void bindProperty(const std::string& name, void (T::*method)(CppVariant*))
170 GetterCallback* callback = new MemberGetterCallback<T>(static_cast<T*>(this), method);
184 // that case (as normally expected). If non 0, the fallback method is
189 // fallback always returns true when checked for a method's
197 // binding a method on the current object. Though not verified here,
198 // |method| must be a method of this CppBoundClass subclass.
199 // Passing 0 for |method| clears out any existing binding.
201 void bindFallbackMethod(void (T::*method)(const CppArgumentList&, CppVariant*))
203 if (method) {
204 Callback* callback = new MemberCallback<T>(static_cast<T*>(this), method);
215 // These maps associate names with property and method pointers to be
220 // The callback gets invoked when a call is made to an nonexistent method.