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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceNode.h

Issue 300743002: Sync binding test results. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
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 V8TestInterfaceNode_h 7 #ifndef V8TestInterfaceNode_h
8 #define V8TestInterfaceNode_h 8 #define V8TestInterfaceNode_h
9 9
10 #include "V8Node.h" 10 #include "V8Node.h"
(...skipping 11 matching lines...) Expand all
22 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*); 22 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*);
23 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); 23 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
24 static TestInterfaceNode* toNative(v8::Handle<v8::Object> object) 24 static TestInterfaceNode* toNative(v8::Handle<v8::Object> object)
25 { 25 {
26 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 26 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
27 } 27 }
28 static TestInterfaceNode* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8: :Value>); 28 static TestInterfaceNode* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8: :Value>);
29 static const WrapperTypeInfo wrapperTypeInfo; 29 static const WrapperTypeInfo wrapperTypeInfo;
30 static void derefObject(void*); 30 static void derefObject(void*);
31 static EventTarget* toEventTarget(v8::Handle<v8::Object>); 31 static EventTarget* toEventTarget(v8::Handle<v8::Object>);
32 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 32 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 0;
33 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1 ;
33 static inline void* toInternalPointer(TestInterfaceNode* impl) 34 static inline void* toInternalPointer(TestInterfaceNode* impl)
34 { 35 {
35 return V8Node::toInternalPointer(impl); 36 return V8Node::toInternalPointer(impl);
36 } 37 }
37 38
38 static inline TestInterfaceNode* fromInternalPointer(void* object) 39 static inline TestInterfaceNode* fromInternalPointer(void* object)
39 { 40 {
40 return static_cast<TestInterfaceNode*>(V8Node::fromInternalPointer(objec t)); 41 return static_cast<TestInterfaceNode*>(V8Node::fromInternalPointer(objec t));
41 } 42 }
42 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceNode*, v8::Isolate*) { } 43 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceNode*, v8::Isolate*) { }
43 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 44 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
44 45
45 private: 46 private:
46 friend v8::Handle<v8::Object> wrap(TestInterfaceNode*, v8::Handle<v8::Object > creationContext, v8::Isolate*); 47 friend v8::Handle<v8::Object> wrap(TestInterfaceNode*, v8::Handle<v8::Object > creationContext, v8::Isolate*);
47 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceNode>, v 8::Handle<v8::Object> creationContext, v8::Isolate*); 48 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestInter faceNode>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
48 }; 49 };
49 50
50 inline v8::Handle<v8::Object> wrap(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate) 51 inline v8::Handle<v8::Object> wrap(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate)
51 { 52 {
52 ASSERT(impl); 53 ASSERT(impl);
53 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNode>(impl, isolate)); 54 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNode>(impl, isolate));
54 return V8TestInterfaceNode::createWrapper(impl, creationContext, isolate); 55 return V8TestInterfaceNode::createWrapper(impl, creationContext, isolate);
55 } 56 }
56 57
57 inline v8::Handle<v8::Value> toV8(TestInterfaceNode* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 58 inline v8::Handle<v8::Value> toV8(TestInterfaceNode* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if (UNLIKELY(!impl)) { 98 if (UNLIKELY(!impl)) {
98 v8SetReturnValueNull(callbackInfo); 99 v8SetReturnValueNull(callbackInfo);
99 return; 100 return;
100 } 101 }
101 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterfaceNode>(callbac kInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 102 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterfaceNode>(callbac kInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
102 return; 103 return;
103 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 104 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
104 v8SetReturnValue(callbackInfo, wrapper); 105 v8SetReturnValue(callbackInfo, wrapper);
105 } 106 }
106 107
107 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestInterfaceNode> impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 108 inline v8::Handle<v8::Value> toV8(PassRefPtrWillBeRawPtr<TestInterfaceNode> impl , v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
108 { 109 {
109 return toV8(impl.get(), creationContext, isolate); 110 return toV8(impl.get(), creationContext, isolate);
110 } 111 }
111 112
112 template<class CallbackInfo> 113 template<class CallbackInfo>
113 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestIn terfaceNode> impl) 114 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtrWillBeR awPtr<TestInterfaceNode> impl)
114 { 115 {
115 v8SetReturnValue(callbackInfo, impl.get()); 116 v8SetReturnValue(callbackInfo, impl.get());
116 } 117 }
117 118
118 template<class CallbackInfo> 119 template<class CallbackInfo>
119 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestInterfaceNode> impl) 120 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtrWillBeRawPtr<TestInterfaceNode> impl)
120 { 121 {
121 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); 122 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
122 } 123 }
123 124
124 template<class CallbackInfo, class Wrappable> 125 template<class CallbackInfo, class Wrappable>
125 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceNode> impl, Wrappable* wrappable) 126 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceNode> impl, Wrappable* wrappable)
126 { 127 {
127 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 128 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
128 } 129 }
129 130
130 } 131 }
131 #endif // V8TestInterfaceNode_h 132 #endif // V8TestInterfaceNode_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceDocument.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698