Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: Source/bindings/templates/interface.h

Issue 153403002: IDL compiler: Finish headers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/tests/idls/TestImplements.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 %}
« no previous file with comments | « no previous file | Source/bindings/tests/idls/TestImplements.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698