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

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

Issue 725163002: bindings: Retires V8T::toEventTarget and reduces the binary size. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made bitfields be type of unsigned to support both of MSVC and Android. Created 6 years, 1 month 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_interface.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 visitor->trace(scriptWrappableBase->toImpl<{{cpp_class}}>()); 70 visitor->trace(scriptWrappableBase->toImpl<{{cpp_class}}>());
71 #endif 71 #endif
72 {% endif %} 72 {% endif %}
73 } 73 }
74 {% if has_visit_dom_wrapper %} 74 {% if has_visit_dom_wrapper %}
75 static void visitDOMWrapper(v8::Isolate*, ScriptWrappableBase*, const v8::Pe rsistent<v8::Object>&); 75 static void visitDOMWrapper(v8::Isolate*, ScriptWrappableBase*, const v8::Pe rsistent<v8::Object>&);
76 {% endif %} 76 {% endif %}
77 {% if is_active_dom_object %} 77 {% if is_active_dom_object %}
78 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); 78 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
79 {% endif %} 79 {% endif %}
80 {% if is_event_target %}
81 static EventTarget* toEventTarget(v8::Handle<v8::Object>);
82 {% endif %}
83 {% if interface_name == 'Window' %} 80 {% if interface_name == 'Window' %}
84 static v8::Handle<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*); 81 static v8::Handle<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*);
85 {% endif %} 82 {% endif %}
86 {% for method in methods %} 83 {% for method in methods %}
87 {% if method.is_custom %} 84 {% if method.is_custom %}
88 {% filter conditional(method.conditional_string) %} 85 {% filter conditional(method.conditional_string) %}
89 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&); 86 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&);
90 {% endfilter %} 87 {% endfilter %}
91 {% endif %} 88 {% endif %}
92 {% endfor %} 89 {% endfor %}
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 201
205 {% endif %}{# has_custom_to_v8 #} 202 {% endif %}{# has_custom_to_v8 #}
206 {% if has_event_constructor %} 203 {% if has_event_constructor %}
207 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info); 204 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info);
208 205
209 {% endif %} 206 {% endif %}
210 } // namespace blink 207 } // namespace blink
211 {% endfilter %} 208 {% endfilter %}
212 209
213 #endif // {{v8_class}}_h 210 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698