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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface.h

Issue 618373003: [bindings] partial interfaces should not violate componentization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict 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_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
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*); 39 static void refObject(ScriptWrappableBase*);
40 static void derefObject(ScriptWrappableBase*); 40 static void derefObject(ScriptWrappableBase*);
41 static void trace(Visitor* visitor, ScriptWrappableBase* scriptWrappableBase ) 41 static void trace(Visitor* visitor, ScriptWrappableBase* scriptWrappableBase )
42 { 42 {
43 } 43 }
44 static void visitDOMWrapper(ScriptWrappableBase*, const v8::Persistent<v8::O bject>&, v8::Isolate*); 44 static void visitDOMWrapper(ScriptWrappableBase*, const v8::Persistent<v8::O bject>&, v8::Isolate*);
45 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); 45 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
46 static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbac kInfo<v8::Value>&); 46 static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbac kInfo<v8::Value>&);
47 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); 47 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
48 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 48 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
49 static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceImplem entation* impl) 49 static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceImplem entation* impl)
50 { 50 {
51 return impl->toScriptWrappableBase(); 51 return impl->toScriptWrappableBase();
52 } 52 }
53 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8 ::Isolate*); 53 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8 ::Isolate*);
54 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I solate*); 54 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I solate*);
55 static void updateWrapperTypeInfo(InstallTemplateFunction, InstallConditiona llyEnabledMethodsFunction);
56 static void installV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemplate>, v8::Isolate*);
57 static void registerVoidMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
58 static void registerStaticVoidMethodPartialOverloadMethodForPartialInterface (void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
59 static void registerPartial2VoidMethodMethodForPartialInterface(void (*)(con st v8::FunctionCallbackInfo<v8::Value>&));
60 static void registerPartial2StaticVoidMethodMethodForPartialInterface(void ( *)(const v8::FunctionCallbackInfo<v8::Value>&));
61
62 private:
63 static InstallTemplateFunction installV8TestInterfaceTemplateFunction;
55 }; 64 };
56 65
57 class TestInterfaceImplementation; 66 class TestInterfaceImplementation;
58 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object> creationContext, v8::Isolate*); 67 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
59 68
60 template<class CallbackInfo> 69 template<class CallbackInfo>
61 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl ementation* impl) 70 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl ementation* impl)
62 { 71 {
63 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 72 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
64 } 73 }
(...skipping 30 matching lines...) Expand all
95 template<class CallbackInfo, class Wrappable> 104 template<class CallbackInfo, class Wrappable>
96 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceImplementation> impl, Wrappable* wrappable) 105 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceImplementation> impl, Wrappable* wrappable)
97 { 106 {
98 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 107 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
99 } 108 }
100 109
101 } // namespace blink 110 } // namespace blink
102 #endif // ENABLE(CONDITION) 111 #endif // ENABLE(CONDITION)
103 112
104 #endif // V8TestInterface_h 113 #endif // V8TestInterface_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/modules/TestPartialInterface3.idl ('k') | Source/bindings/tests/results/core/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698