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

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

Issue 813513004: [bindings] Remove all the usages of Handle<> from binding templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 12 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
« no previous file with comments | « Source/bindings/core/v8/WrapperTypeInfo.h ('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 24 matching lines...) Expand all
35 {% endfor %} 35 {% endfor %}
36 {% for attribute in attributes if attribute.is_implemented_in_private_sc ript %} 36 {% for attribute in attributes if attribute.is_implemented_in_private_sc ript %}
37 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.cpp_type}}* result); 37 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.cpp_type}}* result);
38 {% if not attribute.is_read_only %} 38 {% if not attribute.is_read_only %}
39 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); 39 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue);
40 {% endif %} 40 {% endif %}
41 {% endfor %} 41 {% endfor %}
42 }; 42 };
43 43
44 {% endif %} 44 {% endif %}
45 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); 45 static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
46 {% if is_array_buffer_or_view %} 46 {% if is_array_buffer_or_view %}
47 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object); 47 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object);
48 {% else %} 48 {% else %}
49 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*); 49 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*);
50 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*); 50 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*);
51 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) 51 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object)
52 { 52 {
53 return blink::toScriptWrappable(object)->toImpl<{{cpp_class}}>(); 53 return blink::toScriptWrappable(object)->toImpl<{{cpp_class}}>();
54 } 54 }
55 {% endif %} 55 {% endif %}
56 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value >); 56 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value> );
57 {% if has_partial_interface %} 57 {% if has_partial_interface %}
58 static WrapperTypeInfo wrapperTypeInfo; 58 static WrapperTypeInfo wrapperTypeInfo;
59 {% else %} 59 {% else %}
60 static const WrapperTypeInfo wrapperTypeInfo; 60 static const WrapperTypeInfo wrapperTypeInfo;
61 {% endif %} 61 {% endif %}
62 static void refObject(ScriptWrappable*); 62 static void refObject(ScriptWrappable*);
63 static void derefObject(ScriptWrappable*); 63 static void derefObject(ScriptWrappable*);
64 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) 64 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable)
65 { 65 {
66 {% if gc_type == 'GarbageCollectedObject' %} 66 {% if gc_type == 'GarbageCollectedObject' %}
67 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); 67 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>());
68 {% elif gc_type == 'WillBeGarbageCollectedObject' %} 68 {% elif gc_type == 'WillBeGarbageCollectedObject' %}
69 #if ENABLE(OILPAN) 69 #if ENABLE(OILPAN)
70 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); 70 visitor->trace(scriptWrappable->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*, ScriptWrappable*, const v8::Persis tent<v8::Object>&); 75 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis tent<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::Local<v8::Object>);
79 {% endif %} 79 {% endif %}
80 {% if interface_name == 'Window' %} 80 {% if interface_name == 'Window' %}
81 static v8::Local<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*); 81 static v8::Local<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*);
82 {% endif %} 82 {% endif %}
83 {% for method in methods %} 83 {% for method in methods %}
84 {% if method.is_custom %} 84 {% if method.is_custom %}
85 {% filter conditional(method.conditional_string) %} 85 {% filter conditional(method.conditional_string) %}
86 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&); 86 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&);
87 {% endfilter %} 87 {% endfilter %}
88 {% endif %} 88 {% endif %}
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 {% endif %}{# has_custom_to_v8 #} 196 {% endif %}{# has_custom_to_v8 #}
197 {% if has_event_constructor %} 197 {% if has_event_constructor %}
198 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info); 198 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info);
199 199
200 {% endif %} 200 {% endif %}
201 } // namespace blink 201 } // namespace blink
202 {% endfilter %} 202 {% endfilter %}
203 203
204 #endif // {{v8_class}}_h 204 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/WrapperTypeInfo.h ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698