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 registerVoidMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | |
56 static void registerStaticVoidMethodPartialOverloadMethodForPartialInterface (void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); | |
tasak
2014/10/10 07:52:24
Newly added, because I fixed typo,
| |
57 static void registerPartial2VoidMethodMethodForPartialInterface(void (*)(con st v8::FunctionCallbackInfo<v8::Value>&)); | |
58 static void registerPartial2StaticVoidMethodMethodForPartialInterface(void ( *)(const v8::FunctionCallbackInfo<v8::Value>&)); | |
59 | |
60 private: | |
61 static InstallTemplateFunction installV8TestInterfaceTemplateFunction; | |
53 }; | 62 }; |
54 | 63 |
55 class TestInterfaceImplementation; | 64 class TestInterfaceImplementation; |
56 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object> creationContext, v8::Isolate*); | 65 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
57 | 66 |
58 template<class CallbackInfo> | 67 template<class CallbackInfo> |
59 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl ementation* impl) | 68 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl ementation* impl) |
60 { | 69 { |
61 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); | 70 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); |
62 } | 71 } |
(...skipping 30 matching lines...) Expand all Loading... | |
93 template<class CallbackInfo, class Wrappable> | 102 template<class CallbackInfo, class Wrappable> |
94 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceImplementation> impl, Wrappable* wrappable) | 103 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceImplementation> impl, Wrappable* wrappable) |
95 { | 104 { |
96 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 105 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
97 } | 106 } |
98 | 107 |
99 } // namespace blink | 108 } // namespace blink |
100 #endif // ENABLE(CONDITION) | 109 #endif // ENABLE(CONDITION) |
101 | 110 |
102 #endif // V8TestInterface_h | 111 #endif // V8TestInterface_h |
OLD | NEW |