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

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterface5.h

Issue 557203002: Added core and modules to binding tests results for binding modularization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 V8TestInterface5_h
8 #define V8TestInterface_h 8 #define V8TestInterface5_h
9 9
10 #if ENABLE(CONDITION) 10 #if ENABLE(CONDITION)
11 #include "bindings/core/v8/ScriptWrappable.h" 11 #include "bindings/core/v8/ScriptWrappable.h"
12 #include "bindings/core/v8/V8Binding.h" 12 #include "bindings/core/v8/V8Binding.h"
13 #include "bindings/core/v8/V8DOMWrapper.h" 13 #include "bindings/core/v8/V8DOMWrapper.h"
14 #include "bindings/core/v8/WrapperTypeInfo.h" 14 #include "bindings/core/v8/WrapperTypeInfo.h"
15 #include "bindings/tests/idls/core/TestInterfaceImplementation.h" 15 #include "bindings/tests/idls/modules/TestInterface5Implementation.h"
16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" 16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h"
17 #include "platform/heap/Handle.h" 17 #include "platform/heap/Handle.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class V8TestInterface { 21 class V8TestInterface5 {
22 public: 22 public:
23 class PrivateScript {
24 public:
25 static bool shortMethodWithShortArgumentImplementedInPrivateScriptMethod (LocalFrame* frame, TestInterface* holderImpl, int value, int* result);
26 static bool stringAttributeAttributeGetter(LocalFrame* frame, TestInterf aceImplementation* holderImpl, String* result);
27 static bool stringAttributeAttributeSetter(LocalFrame* frame, TestInterf aceImplementation* holderImpl, String cppValue);
28 };
29
30 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); 23 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*);
31 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*); 24 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*);
32 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); 25 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
33 static TestInterfaceImplementation* toImpl(v8::Handle<v8::Object> object) 26 static TestInterface5Implementation* toImpl(v8::Handle<v8::Object> object)
34 { 27 {
35 return toImpl(blink::toScriptWrappableBase(object)); 28 return toImpl(blink::toScriptWrappableBase(object));
36 } 29 }
37 static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolate*, v8::Ha ndle<v8::Value>); 30 static TestInterface5Implementation* toImplWithTypeCheck(v8::Isolate*, v8::H andle<v8::Value>);
38 static const WrapperTypeInfo wrapperTypeInfo; 31 static const WrapperTypeInfo wrapperTypeInfo;
39 static void refObject(ScriptWrappableBase* internalPointer); 32 static void refObject(ScriptWrappableBase* internalPointer);
40 static void derefObject(ScriptWrappableBase* internalPointer); 33 static void derefObject(ScriptWrappableBase* internalPointer);
41 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in ternalPointer); 34 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in ternalPointer);
42 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8:: Persistent<v8::Object>&, v8::Isolate*); 35 static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8:: Persistent<v8::Object>&, v8::Isolate*);
43 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); 36 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
44 static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbac kInfo<v8::Value>&);
45 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); 37 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 38 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
47 static inline ScriptWrappableBase* toScriptWrappableBase(TestInterfaceImplem entation* impl) 39 static inline ScriptWrappableBase* toScriptWrappableBase(TestInterface5Imple mentation* impl)
48 { 40 {
49 return impl->toScriptWrappableBase(); 41 return impl->toScriptWrappableBase();
50 } 42 }
51 43
52 static inline TestInterfaceImplementation* toImpl(ScriptWrappableBase* inter nalPointer) 44 static inline TestInterface5Implementation* toImpl(ScriptWrappableBase* inte rnalPointer)
53 { 45 {
54 return internalPointer->toImpl<TestInterfaceImplementation>(); 46 return internalPointer->toImpl<TestInterface5Implementation>();
55 } 47 }
56 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8 ::Isolate*); 48 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8 ::Isolate*);
57 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I solate*); 49 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I solate*);
58 50
59 private: 51 private:
60 }; 52 };
61 53
62 class TestInterfaceImplementation; 54 class TestInterface5Implementation;
63 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object> creationContext, v8::Isolate*); 55 v8::Handle<v8::Value> toV8(TestInterface5Implementation*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
64 56
65 template<class CallbackInfo> 57 template<class CallbackInfo>
66 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl ementation* impl) 58 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface5Imp lementation* impl)
67 { 59 {
68 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 60 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
69 } 61 }
70 62
71 template<class CallbackInfo> 63 template<class CallbackInfo>
72 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterfaceImplementation* impl) 64 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterface5Implementation* impl)
73 { 65 {
74 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate())); 66 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()));
75 } 67 }
76 68
77 template<class CallbackInfo, class Wrappable> 69 template<class CallbackInfo, class Wrappable>
78 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterface Implementation* impl, Wrappable*) 70 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterface 5Implementation* impl, Wrappable*)
79 { 71 {
80 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate())); 72 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()));
81 } 73 }
82 74
83 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestInterfaceImplementation> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 75 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestInterface5Implementation> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
84 { 76 {
85 return toV8(impl.get(), creationContext, isolate); 77 return toV8(impl.get(), creationContext, isolate);
86 } 78 }
87 79
88 template<class CallbackInfo> 80 template<class CallbackInfo>
89 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestIn terfaceImplementation> impl) 81 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestIn terface5Implementation> impl)
90 { 82 {
91 v8SetReturnValue(callbackInfo, impl.get()); 83 v8SetReturnValue(callbackInfo, impl.get());
92 } 84 }
93 85
94 template<class CallbackInfo> 86 template<class CallbackInfo>
95 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestInterfaceImplementation> impl) 87 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestInterface5Implementation> impl)
96 { 88 {
97 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); 89 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
98 } 90 }
99 91
100 template<class CallbackInfo, class Wrappable> 92 template<class CallbackInfo, class Wrappable>
101 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceImplementation> impl, Wrappable* wrappable) 93 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterface5Implementation> impl, Wrappable* wrappable)
102 { 94 {
103 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 95 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
104 } 96 }
105 97
106 } // namespace blink 98 } // namespace blink
107 #endif // ENABLE(CONDITION) 99 #endif // ENABLE(CONDITION)
108 #endif // V8TestInterface_h 100 #endif // V8TestInterface5_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestTypedefs.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterface5.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698