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

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

Issue 302263004: Oilpan: Move [WillBeGarbageCollected] from Node to EventTarget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update bindings test files Created 6 years, 6 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 V8TestInterfaceEventTarget_h 7 #ifndef V8TestInterfaceEventTarget_h
8 #define V8TestInterfaceEventTarget_h 8 #define V8TestInterfaceEventTarget_h
9 9
10 #include "bindings/tests/idls/TestInterfaceEventTarget.h" 10 #include "bindings/tests/idls/TestInterfaceEventTarget.h"
(...skipping 18 matching lines...) Expand all
29 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); 29 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
30 static TestInterfaceEventTarget* toNative(v8::Handle<v8::Object> object) 30 static TestInterfaceEventTarget* toNative(v8::Handle<v8::Object> object)
31 { 31 {
32 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 32 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
33 } 33 }
34 static TestInterfaceEventTarget* toNativeWithTypeCheck(v8::Isolate*, v8::Han dle<v8::Value>); 34 static TestInterfaceEventTarget* toNativeWithTypeCheck(v8::Isolate*, v8::Han dle<v8::Value>);
35 static const WrapperTypeInfo wrapperTypeInfo; 35 static const WrapperTypeInfo wrapperTypeInfo;
36 static void derefObject(void*); 36 static void derefObject(void*);
37 static EventTarget* toEventTarget(v8::Handle<v8::Object>); 37 static EventTarget* toEventTarget(v8::Handle<v8::Object>);
38 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + 0; 38 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + 0;
39 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1 ; 39 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + 1;
40 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 2 ;
haraken 2014/06/02 12:41:18 oh, this might be problematic, because this increa
zerny-chromium 2014/06/02 13:06:49 Yes, please do. I agree that we should not increas
40 static inline void* toInternalPointer(TestInterfaceEventTarget* impl) 41 static inline void* toInternalPointer(TestInterfaceEventTarget* impl)
41 { 42 {
42 return V8EventTarget::toInternalPointer(impl); 43 return V8EventTarget::toInternalPointer(impl);
43 } 44 }
44 45
45 static inline TestInterfaceEventTarget* fromInternalPointer(void* object) 46 static inline TestInterfaceEventTarget* fromInternalPointer(void* object)
46 { 47 {
47 return static_cast<TestInterfaceEventTarget*>(V8EventTarget::fromInterna lPointer(object)); 48 return static_cast<TestInterfaceEventTarget*>(V8EventTarget::fromInterna lPointer(object));
48 } 49 }
49 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEventTarget*, v8::Isolate*) { } 50 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEventTarget*, v8::Isolate*) { }
50 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 51 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
51 52
52 private: 53 private:
53 friend v8::Handle<v8::Object> wrap(TestInterfaceEventTarget*, v8::Handle<v8: :Object> creationContext, v8::Isolate*); 54 friend v8::Handle<v8::Object> wrap(TestInterfaceEventTarget*, v8::Handle<v8: :Object> creationContext, v8::Isolate*);
54 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceEventTar get>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 55 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestInter faceEventTarget>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
55 }; 56 };
56 57
57 inline v8::Handle<v8::Object> wrap(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 58 inline v8::Handle<v8::Object> wrap(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
58 { 59 {
59 ASSERT(impl); 60 ASSERT(impl);
60 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventTarget>(impl, isol ate)); 61 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventTarget>(impl, isol ate));
61 return V8TestInterfaceEventTarget::createWrapper(impl, creationContext, isol ate); 62 return V8TestInterfaceEventTarget::createWrapper(impl, creationContext, isol ate);
62 } 63 }
63 64
64 inline v8::Handle<v8::Value> toV8(TestInterfaceEventTarget* impl, v8::Handle<v8: :Object> creationContext, v8::Isolate* isolate) 65 inline v8::Handle<v8::Value> toV8(TestInterfaceEventTarget* impl, v8::Handle<v8: :Object> creationContext, v8::Isolate* isolate)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 if (UNLIKELY(!impl)) { 105 if (UNLIKELY(!impl)) {
105 v8SetReturnValueNull(callbackInfo); 106 v8SetReturnValueNull(callbackInfo);
106 return; 107 return;
107 } 108 }
108 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterfaceEventTarget>( callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 109 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterfaceEventTarget>( callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
109 return; 110 return;
110 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 111 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
111 v8SetReturnValue(callbackInfo, wrapper); 112 v8SetReturnValue(callbackInfo, wrapper);
112 } 113 }
113 114
114 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestInterfaceEventTarget> impl, v8: :Handle<v8::Object> creationContext, v8::Isolate* isolate) 115 inline v8::Handle<v8::Value> toV8(PassRefPtrWillBeRawPtr<TestInterfaceEventTarge t> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
115 { 116 {
116 return toV8(impl.get(), creationContext, isolate); 117 return toV8(impl.get(), creationContext, isolate);
117 } 118 }
118 119
119 template<class CallbackInfo> 120 template<class CallbackInfo>
120 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestIn terfaceEventTarget> impl) 121 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtrWillBeR awPtr<TestInterfaceEventTarget> impl)
121 { 122 {
122 v8SetReturnValue(callbackInfo, impl.get()); 123 v8SetReturnValue(callbackInfo, impl.get());
123 } 124 }
124 125
125 template<class CallbackInfo> 126 template<class CallbackInfo>
126 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestInterfaceEventTarget> impl) 127 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtrWillBeRawPtr<TestInterfaceEventTarget> impl)
127 { 128 {
128 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); 129 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
129 } 130 }
130 131
131 template<class CallbackInfo, class Wrappable> 132 template<class CallbackInfo, class Wrappable>
132 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterfaceEventTarget> impl, Wrappable* wrappable) 133 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceEventTarget> impl, Wrappable* wrappable)
133 { 134 {
134 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 135 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
135 } 136 }
136 137
137 } 138 }
138 #endif // V8TestInterfaceEventTarget_h 139 #endif // V8TestInterfaceEventTarget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698