| OLD | NEW |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); | 46 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); |
| 47 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 47 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
| 48 static {{cpp_class}}* toNative(v8::Handle<v8::Object> object) | 48 static {{cpp_class}}* toNative(v8::Handle<v8::Object> object) |
| 49 { | 49 { |
| 50 return fromInternalPointer(blink::toInternalPointer(object)); | 50 return fromInternalPointer(blink::toInternalPointer(object)); |
| 51 } | 51 } |
| 52 static {{cpp_class}}* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Val
ue>); | 52 static {{cpp_class}}* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Val
ue>); |
| 53 static const WrapperTypeInfo wrapperTypeInfo; | 53 static const WrapperTypeInfo wrapperTypeInfo; |
| 54 static void refObject(ScriptWrappableBase* internalPointer); | 54 static void refObject(ScriptWrappableBase* internalPointer); |
| 55 static void derefObject(ScriptWrappableBase* internalPointer); | 55 static void derefObject(ScriptWrappableBase* internalPointer); |
| 56 static PersistentNode* createPersistentHandle(ScriptWrappableBase* internalP
ointer); | 56 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in
ternalPointer); |
| 57 {% if has_visit_dom_wrapper %} | 57 {% if has_visit_dom_wrapper %} |
| 58 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::
Persistent<v8::Object>&, v8::Isolate*); | 58 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::
Persistent<v8::Object>&, v8::Isolate*); |
| 59 {% endif %} | 59 {% endif %} |
| 60 {% if is_active_dom_object %} | 60 {% if is_active_dom_object %} |
| 61 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); | 61 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); |
| 62 {% endif %} | 62 {% endif %} |
| 63 {% if is_event_target %} | 63 {% if is_event_target %} |
| 64 static EventTarget* toEventTarget(v8::Handle<v8::Object>); | 64 static EventTarget* toEventTarget(v8::Handle<v8::Object>); |
| 65 {% endif %} | 65 {% endif %} |
| 66 {% if interface_name == 'Window' %} | 66 {% if interface_name == 'Window' %} |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 287 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 288 } | 288 } |
| 289 | 289 |
| 290 {% if has_event_constructor %} | 290 {% if has_event_constructor %} |
| 291 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); | 291 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta
te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); |
| 292 | 292 |
| 293 {% endif %} | 293 {% endif %} |
| 294 } // namespace blink | 294 } // namespace blink |
| 295 {% endfilter %} | 295 {% endfilter %} |
| 296 #endif // {{v8_class}}_h | 296 #endif // {{v8_class}}_h |
| OLD | NEW |