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_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #ifndef V8TestInterface_h | 7 #ifndef V8TestInterface_h |
8 #define V8TestInterface_h | 8 #define V8TestInterface_h |
9 | 9 |
10 #if ENABLE(CONDITION) | 10 #if ENABLE(CONDITION) |
(...skipping 17 matching lines...) Expand all Loading... |
28 }; | 28 }; |
29 | 29 |
30 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); | 30 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
31 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); | 31 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); |
32 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 32 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
33 static TestInterfaceImplementation* toImpl(v8::Handle<v8::Object> object) | 33 static TestInterfaceImplementation* toImpl(v8::Handle<v8::Object> object) |
34 { | 34 { |
35 return blink::toScriptWrappableBase(object)->toImpl<TestInterfaceImpleme
ntation>(); | 35 return blink::toScriptWrappableBase(object)->toImpl<TestInterfaceImpleme
ntation>(); |
36 } | 36 } |
37 static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolate*, v8::Ha
ndle<v8::Value>); | 37 static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolate*, v8::Ha
ndle<v8::Value>); |
38 static const WrapperTypeInfo wrapperTypeInfo; | 38 static WrapperTypeInfo wrapperTypeInfo; |
39 static void refObject(ScriptWrappableBase* internalPointer); | 39 static void refObject(ScriptWrappableBase* internalPointer); |
40 static void derefObject(ScriptWrappableBase* internalPointer); | 40 static void derefObject(ScriptWrappableBase* internalPointer); |
41 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in
ternalPointer); | 41 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in
ternalPointer); |
42 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::
Persistent<v8::Object>&, v8::Isolate*); | 42 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::
Persistent<v8::Object>&, v8::Isolate*); |
43 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); | 43 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); |
44 static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbac
kInfo<v8::Value>&); | 44 static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbac
kInfo<v8::Value>&); |
45 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); | 45 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
47 static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceImplem
entation* impl) | 47 static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceImplem
entation* impl) |
48 { | 48 { |
49 return impl->toScriptWrappableBase(); | 49 return impl->toScriptWrappableBase(); |
50 } | 50 } |
51 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*); | 51 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*); |
52 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*); | 52 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*); |
| 53 static void updateWrapperTypeInfo(InstallTemplateFunction, InstallConditiona
llyEnabledMethodsFunction); |
| 54 static void installV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate>,
v8::Isolate*); |
| 55 static void registerPartial2VoidMethodMethodForPartialInterface(void (*)(con
st v8::FunctionCallbackInfo<v8::Value>&)); |
| 56 static void registerPartial2StaticVoidMethodMethodForPartialInterface(void (
*)(const v8::FunctionCallbackInfo<v8::Value>&)); |
| 57 |
| 58 private: |
| 59 static InstallTemplateFunction installV8TestInterfaceTemplateFunction; |
53 }; | 60 }; |
54 | 61 |
55 class TestInterfaceImplementation; | 62 class TestInterfaceImplementation; |
56 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); | 63 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); |
57 | 64 |
58 template<class CallbackInfo> | 65 template<class CallbackInfo> |
59 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl
ementation* impl) | 66 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl
ementation* impl) |
60 { | 67 { |
61 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf
o.GetIsolate())); | 68 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf
o.GetIsolate())); |
62 } | 69 } |
(...skipping 30 matching lines...) Expand all Loading... |
93 template<class CallbackInfo, class Wrappable> | 100 template<class CallbackInfo, class Wrappable> |
94 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceImplementation> impl, Wrappable* wrappable) | 101 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceImplementation> impl, Wrappable* wrappable) |
95 { | 102 { |
96 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 103 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
97 } | 104 } |
98 | 105 |
99 } // namespace blink | 106 } // namespace blink |
100 #endif // ENABLE(CONDITION) | 107 #endif // ENABLE(CONDITION) |
101 | 108 |
102 #endif // V8TestInterface_h | 109 #endif // V8TestInterface_h |
OLD | NEW |