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

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

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Win GPU tests (DOMDataView). Created 6 years, 2 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
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 25 matching lines...) Expand all
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::Handle<v8::Value>, v8::Isolate*);
46 {% if is_v8object %}
haraken 2014/10/14 15:11:18 I'd prefer {% if not is_array_type %}
46 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*); 47 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*);
47 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); 48 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
49 {% endif %}
50 {% if is_array_type %}
haraken 2014/10/14 15:11:18 You can merge this if branch with the above if bra
Yuki 2014/10/15 09:35:23 I'd like *not* to put an assumption that is_v8obje
51 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object);
52 {% else %}
48 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object) 53 static {{cpp_class}}* toImpl(v8::Handle<v8::Object> object)
49 { 54 {
50 return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>(); 55 return blink::toScriptWrappableBase(object)->toImpl<{{cpp_class}}>();
51 } 56 }
57 {% endif %}
52 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value >); 58 static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value >);
53 static const WrapperTypeInfo wrapperTypeInfo; 59 static const WrapperTypeInfo wrapperTypeInfo;
54 static void refObject(ScriptWrappableBase* internalPointer); 60 static void refObject(ScriptWrappableBase* internalPointer);
55 static void derefObject(ScriptWrappableBase* internalPointer); 61 static void derefObject(ScriptWrappableBase* internalPointer);
56 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in ternalPointer); 62 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in ternalPointer);
57 {% if has_visit_dom_wrapper %} 63 {% if has_visit_dom_wrapper %}
58 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8:: Persistent<v8::Object>&, v8::Isolate*); 64 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8:: Persistent<v8::Object>&, v8::Isolate*);
59 {% endif %} 65 {% endif %}
60 {% if is_active_dom_object %} 66 {% if is_active_dom_object %}
61 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); 67 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 287 }
282 288
283 {% if has_event_constructor %} 289 {% if has_event_constructor %}
284 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 290 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
285 291
286 {% endif %} 292 {% endif %}
287 } // namespace blink 293 } // namespace blink
288 {% endfilter %} 294 {% endfilter %}
289 295
290 #endif // {{v8_class}}_h 296 #endif // {{v8_class}}_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698