Chromium Code Reviews| Index: Source/bindings/templates/interface.h |
| diff --git a/Source/bindings/templates/interface.h b/Source/bindings/templates/interface.h |
| index 8555652a59b8819a56ec8c248949c7f5007a2c55..99dac83f7f99facf598178f59c40142faf4deb78 100644 |
| --- a/Source/bindings/templates/interface.h |
| +++ b/Source/bindings/templates/interface.h |
| @@ -50,7 +50,11 @@ public: |
| return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>(); |
| } |
| static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>); |
| + {% if has_partial_interface %} |
| + static WrapperTypeInfo wrapperTypeInfo; |
| + {% else %} |
| static const WrapperTypeInfo wrapperTypeInfo; |
| + {% endif %} |
| static void refObject(ScriptWrappableBase* internalPointer); |
| static void derefObject(ScriptWrappableBase* internalPointer); |
| static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* internalPointer); |
| @@ -162,12 +166,26 @@ public: |
| static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*){% if conditionally_enabled_methods %}; |
| {% else %} { } |
| {% endif %} |
| + {% if has_partial_interface %} |
| + static void updateWrapperTypeInfo(InstallTemplateFunction, InstallConditionallyEnabledMethodsFunction); |
| + static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate>, v8::Isolate*); |
| + {% for method in methods %} |
| + {% if method.overloads and method.overloads.partial_overloads %} |
|
haraken
2014/10/09 04:24:01
partial_overloads => has_partial_overloads
tasak
2014/10/10 07:52:23
Done.
|
| + static void register{{method.name | blink_capitalize}}MethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
| + {% endif %} |
| + {% endfor %} |
| + {% endif %} |
| {% if not has_custom_to_v8 and not is_script_wrappable %} |
| private: |
| friend v8::Handle<v8::Object> wrap({{cpp_class}}*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
| static v8::Handle<v8::Object> createWrapper({{pass_cpp_type}}, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
| {% endif %} |
| + {% if has_partial_interface %} |
| + |
| +private: |
| + static InstallTemplateFunction install{{v8_class}}TemplateFunction; |
| + {% endif %} |
| }; |
| {% if has_custom_to_v8 %} |