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..a8ebce59e92fe2f1e93066304e91ceabe47d894a 100644 |
| --- a/Source/bindings/templates/interface.h |
| +++ b/Source/bindings/templates/interface.h |
| @@ -43,12 +43,18 @@ public: |
| {% endif %} |
| static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
| + {% if is_v8object %} |
|
haraken
2014/10/14 15:11:18
I'd prefer {% if not is_array_type %}
|
| static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Value>, v8::Isolate*); |
| static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
| + {% endif %} |
| + {% if is_array_type %} |
|
haraken
2014/10/14 15:11:18
You can merge this if branch with the above if bra
Yuki
2014/10/15 09:35:23
I'd like *not* to put an assumption that is_v8obje
|
| + static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object); |
| + {% else %} |
| static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) |
| { |
| return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>(); |
| } |
| + {% endif %} |
| static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>); |
| static const WrapperTypeInfo wrapperTypeInfo; |
| static void refObject(ScriptWrappableBase* internalPointer); |