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

Side by Side Diff: Source/bindings/tests/results/V8TestNode.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 V8TestNode_h 7 #ifndef V8TestNode_h
8 #define V8TestNode_h 8 #define V8TestNode_h
9 9
10 #include "V8Node.h" 10 #include "V8Node.h"
(...skipping 12 matching lines...) Expand all
23 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); 23 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
24 static TestNode* toNative(v8::Handle<v8::Object> object) 24 static TestNode* 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 TestNode* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>); 28 static TestNode* 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 void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 32 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
33 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 33 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 0;
34 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1 ;
34 static inline void* toInternalPointer(TestNode* impl) 35 static inline void* toInternalPointer(TestNode* impl)
35 { 36 {
36 return V8Node::toInternalPointer(impl); 37 return V8Node::toInternalPointer(impl);
37 } 38 }
38 39
39 static inline TestNode* fromInternalPointer(void* object) 40 static inline TestNode* fromInternalPointer(void* object)
40 { 41 {
41 return static_cast<TestNode*>(V8Node::fromInternalPointer(object)); 42 return static_cast<TestNode*>(V8Node::fromInternalPointer(object));
42 } 43 }
43 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN ode*, v8::Isolate*) { } 44 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN ode*, v8::Isolate*) { }
44 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 45 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
45 46
46 private: 47 private:
47 friend v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creatio nContext, v8::Isolate*); 48 friend v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creatio nContext, v8::Isolate*);
48 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestNode>, v8::Handle <v8::Object> creationContext, v8::Isolate*); 49 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestNode> , v8::Handle<v8::Object> creationContext, v8::Isolate*);
49 }; 50 };
50 51
51 inline v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creati onContext, v8::Isolate* isolate) 52 inline v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creati onContext, v8::Isolate* isolate)
52 { 53 {
53 ASSERT(impl); 54 ASSERT(impl);
54 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl, isolate)); 55 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl, isolate));
55 return V8TestNode::createWrapper(impl, creationContext, isolate); 56 return V8TestNode::createWrapper(impl, creationContext, isolate);
56 } 57 }
57 58
58 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 59 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 if (UNLIKELY(!impl)) { 99 if (UNLIKELY(!impl)) {
99 v8SetReturnValueNull(callbackInfo); 100 v8SetReturnValueNull(callbackInfo);
100 return; 101 return;
101 } 102 }
102 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestNode>(callbackInfo.Get ReturnValue(), impl, callbackInfo.Holder(), wrappable)) 103 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestNode>(callbackInfo.Get ReturnValue(), impl, callbackInfo.Holder(), wrappable))
103 return; 104 return;
104 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 105 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
105 v8SetReturnValue(callbackInfo, wrapper); 106 v8SetReturnValue(callbackInfo, wrapper);
106 } 107 }
107 108
108 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestNode> impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate) 109 inline v8::Handle<v8::Value> toV8(PassRefPtrWillBeRawPtr<TestNode> impl, v8::Han dle<v8::Object> creationContext, v8::Isolate* isolate)
109 { 110 {
110 return toV8(impl.get(), creationContext, isolate); 111 return toV8(impl.get(), creationContext, isolate);
111 } 112 }
112 113
113 template<class CallbackInfo> 114 template<class CallbackInfo>
114 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestNo de> impl) 115 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtrWillBeR awPtr<TestNode> impl)
115 { 116 {
116 v8SetReturnValue(callbackInfo, impl.get()); 117 v8SetReturnValue(callbackInfo, impl.get());
117 } 118 }
118 119
119 template<class CallbackInfo> 120 template<class CallbackInfo>
120 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestNode> impl) 121 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtrWillBeRawPtr<TestNode> impl)
121 { 122 {
122 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); 123 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
123 } 124 }
124 125
125 template<class CallbackInfo, class Wrappable> 126 template<class CallbackInfo, class Wrappable>
126 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stNode> impl, Wrappable* wrappable) 127 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestNode> impl, Wrappable* wrappable)
127 { 128 {
128 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 129 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
129 } 130 }
130 131
131 } 132 }
132 #endif // V8TestNode_h 133 #endif // V8TestNode_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceNode.cpp ('k') | Source/bindings/tests/results/V8TestNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698