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

Side by Side Diff: Source/bindings/templates/interface.h

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missed renames Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/scripts/v8_utilities.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #ifndef {{v8_class}}_h 7 #ifndef {{v8_class}}_h
8 #define {{v8_class}}_h 8 #define {{v8_class}}_h
9 9
10 {% filter conditional(conditional_string) %} 10 {% filter conditional(conditional_string) %}
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 {% if parent_interface %} 160 {% if parent_interface %}
161 return static_cast<{{cpp_class}}*>(V8{{parent_interface}}::fromInternalP ointer(internalPointer)); 161 return static_cast<{{cpp_class}}*>(V8{{parent_interface}}::fromInternalP ointer(internalPointer));
162 {% else %} 162 {% else %}
163 return reinterpret_cast<{{cpp_class}}*>(static_cast<void*>(internalPoint er)); 163 return reinterpret_cast<{{cpp_class}}*>(static_cast<void*>(internalPoint er));
164 {% endif %} 164 {% endif %}
165 } 165 }
166 {% if interface_name == 'Window' %} 166 {% if interface_name == 'Window' %}
167 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v 8::Value> key, v8::AccessType, v8::Local<v8::Value> data); 167 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v 8::Value> key, v8::AccessType, v8::Local<v8::Value> data);
168 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t index, v8::AccessType, v8::Local<v8::Value> data); 168 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t index, v8::AccessType, v8::Local<v8::Value> data);
169 {% endif %} 169 {% endif %}
170 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, {{cpp _class}}*, v8::Isolate*){% if has_per_context_enabled_attributes %}; 170 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8 ::Isolate*){% if has_conditional_attributes %};
171 {% else %} { } 171 {% else %} { }
172 {% endif %} 172 {% endif %}
173 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*){% if per_context_enabled_methods %}; 173 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I solate*){% if conditionally_enabled_methods %};
174 {% else %} { } 174 {% else %} { }
175 {% endif %} 175 {% endif %}
176 {# Element wrappers #} 176 {# Element wrappers #}
177 {% if interface_name == 'HTMLElement' %} 177 {% if interface_name == 'HTMLElement' %}
178 friend v8::Handle<v8::Object> createV8HTMLWrapper(HTMLElement*, v8::Handle<v 8::Object> creationContext, v8::Isolate*); 178 friend v8::Handle<v8::Object> createV8HTMLWrapper(HTMLElement*, v8::Handle<v 8::Object> creationContext, v8::Isolate*);
179 friend v8::Handle<v8::Object> createV8HTMLDirectWrapper(HTMLElement*, v8::Ha ndle<v8::Object> creationContext, v8::Isolate*); 179 friend v8::Handle<v8::Object> createV8HTMLDirectWrapper(HTMLElement*, v8::Ha ndle<v8::Object> creationContext, v8::Isolate*);
180 {% elif interface_name == 'SVGElement' %} 180 {% elif interface_name == 'SVGElement' %}
181 friend v8::Handle<v8::Object> createV8SVGWrapper(SVGElement*, v8::Handle<v8: :Object> creationContext, v8::Isolate*); 181 friend v8::Handle<v8::Object> createV8SVGWrapper(SVGElement*, v8::Handle<v8: :Object> creationContext, v8::Isolate*);
182 friend v8::Handle<v8::Object> createV8SVGDirectWrapper(SVGElement*, v8::Hand le<v8::Object> creationContext, v8::Isolate*); 182 friend v8::Handle<v8::Object> createV8SVGDirectWrapper(SVGElement*, v8::Hand le<v8::Object> creationContext, v8::Isolate*);
183 friend v8::Handle<v8::Object> createV8SVGFallbackWrapper(SVGElement*, v8::Ha ndle<v8::Object> creationContext, v8::Isolate*); 183 friend v8::Handle<v8::Object> createV8SVGFallbackWrapper(SVGElement*, v8::Ha ndle<v8::Object> creationContext, v8::Isolate*);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 293 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
294 } 294 }
295 295
296 {% if has_event_constructor %} 296 {% if has_event_constructor %}
297 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 297 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
298 298
299 {% endif %} 299 {% endif %}
300 } 300 }
301 {% endfilter %} 301 {% endfilter %}
302 #endif // {{v8_class}}_h 302 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_utilities.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698