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

Unified Diff: Source/bindings/templates/partial_interface.cpp

Issue 1202683002: bindings: Supports per-member [Exposed] for attributes on prototype. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 5 years, 6 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 | « Source/bindings/templates/partial_interface.h ('k') | Source/bindings/tests/results/core/V8ArrayBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/partial_interface.cpp
diff --git a/Source/bindings/templates/partial_interface.cpp b/Source/bindings/templates/partial_interface.cpp
index 2282dd3a01534f8f4980c6ebbec88cdb7ffc2c9d..b4489a76153aa8d87a6d4feffe9d1aa97b3206b2 100644
--- a/Source/bindings/templates/partial_interface.cpp
+++ b/Source/bindings/templates/partial_interface.cpp
@@ -4,14 +4,18 @@
{##############################################################################}
{% block prepare_prototype_object %}
{% from 'interface.cpp' import install_unscopeables with context %}
+{% from 'interface.cpp' import install_conditionally_enabled_attributes_on_prototype with context %}
{% from 'methods.cpp' import install_conditionally_enabled_methods
with context %}
-void {{v8_class_or_partial}}::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8::Object> prototypeObject)
+void {{v8_class_or_partial}}::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8::Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate)
{
- {{v8_class}}::preparePrototypeObject(isolate, prototypeObject);
+ {{v8_class}}::preparePrototypeObject(isolate, prototypeObject, interfaceTemplate);
{% if unscopeables %}
{{install_unscopeables() | indent}}
{% endif %}
+{% if has_conditional_attributes_on_prototype %}
+ {{install_conditionally_enabled_attributes_on_prototype() | indent}}
+{% endif %}
{% if conditionally_enabled_methods %}
{{install_conditionally_enabled_methods() | indent}}
{% endif %}
« no previous file with comments | « Source/bindings/templates/partial_interface.h ('k') | Source/bindings/tests/results/core/V8ArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698