Chromium Code Reviews| Index: Source/bindings/templates/interface.h |
| diff --git a/Source/bindings/templates/interface.h b/Source/bindings/templates/interface.h |
| index 529b3997abc595da10df076a44ce36e202dab0d8..f3977d49536ee0efcd2d8e63b4d7123de56b919e 100644 |
| --- a/Source/bindings/templates/interface.h |
| +++ b/Source/bindings/templates/interface.h |
| @@ -72,6 +72,9 @@ public: |
| {% if is_event_target %} |
| static EventTarget* toEventTarget(v8::Handle<v8::Object>); |
| {% endif %} |
| + {% if interface_name == 'Window' %} |
| + static v8::Handle<v8::ObjectTemplate> GetShadowObjectTemplate(v8::Isolate*, WrapperWorldType); |
|
haraken
2014/02/04 02:56:15
GetShadowObjectTemplate => getShadowObjectTemplate
Nils Barth (inactive)
2014/02/04 04:09:44
IDL compiler: rename GetShadowObjectTemplate => ge
|
| + {% endif %} |
| {% for method in methods if method.is_custom %} |
| {% filter conditional(method.conditional_string) %} |
| static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
| @@ -150,12 +153,26 @@ public: |
| return static_cast<{{cpp_class}}*>(object); |
| {% endif %} |
| } |
| + {% if interface_name == 'Window' %} |
| + static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v8::Value> key, v8::AccessType, v8::Local<v8::Value> data); |
| + static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t index, v8::AccessType, v8::Local<v8::Value> data); |
| + {% endif %} |
| static void installPerContextEnabledProperties(v8::Handle<v8::Object>, {{cpp_class}}*, v8::Isolate*){% if has_per_context_enabled_attributes %}; |
| {% else %} { } |
| {% endif %} |
| - static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*){% if has_per_context_enabled_attributes %}; |
| + static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*){% if has_per_context_enabled_methods %}; |
| {% else %} { } |
| {% endif %} |
| + {# Element wrappers #} |
| + {% if interface_name == 'HTMLElement' %} |
| + friend v8::Handle<v8::Object> createV8HTMLWrapper(HTMLElement*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
| + friend v8::Handle<v8::Object> createV8HTMLDirectWrapper(HTMLElement*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
| + {% elif interface_name == 'HTMLUnknownElement' %} |
| + friend v8::Handle<v8::Object> createV8HTMLFallbackWrapper(HTMLUnknownElement*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
| + {% elif interface_name == 'Element' %} |
| + // This is a performance optimization hack. See V8Element::wrap. |
| + friend v8::Handle<v8::Object> wrap(Node*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
|
haraken
2014/02/04 02:56:15
Is this still needed?
Nils Barth (inactive)
2014/02/04 04:09:44
Looks like it; it's used by V8NodeCustom.cpp.
|
| + {% endif %} |
| private: |
| {% if not has_custom_to_v8 %} |