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

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

Issue 213363006: Oilpan: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 V8TestInterfaceEventConstructor_h 7 #ifndef V8TestInterfaceEventConstructor_h
8 #define V8TestInterfaceEventConstructor_h 8 #define V8TestInterfaceEventConstructor_h
9 9
10 #include "V8Event.h" 10 #include "V8Event.h"
(...skipping 12 matching lines...) Expand all
23 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*); 23 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va lue>, v8::Isolate*);
24 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); 24 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
25 static TestInterfaceEventConstructor* toNative(v8::Handle<v8::Object> object ) 25 static TestInterfaceEventConstructor* toNative(v8::Handle<v8::Object> object )
26 { 26 {
27 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 27 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
28 } 28 }
29 static TestInterfaceEventConstructor* toNativeWithTypeCheck(v8::Isolate*, v8 ::Handle<v8::Value>); 29 static TestInterfaceEventConstructor* toNativeWithTypeCheck(v8::Isolate*, v8 ::Handle<v8::Value>);
30 static const WrapperTypeInfo wrapperTypeInfo; 30 static const WrapperTypeInfo wrapperTypeInfo;
31 static void derefObject(void*); 31 static void derefObject(void*);
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(TestInterfaceEventConstructor* impl) 35 static inline void* toInternalPointer(TestInterfaceEventConstructor* impl)
35 { 36 {
36 return V8Event::toInternalPointer(impl); 37 return V8Event::toInternalPointer(impl);
37 } 38 }
38 39
39 static inline TestInterfaceEventConstructor* fromInternalPointer(void* objec t) 40 static inline TestInterfaceEventConstructor* fromInternalPointer(void* objec t)
40 { 41 {
41 return static_cast<TestInterfaceEventConstructor*>(V8Event::fromInternal Pointer(object)); 42 return static_cast<TestInterfaceEventConstructor*>(V8Event::fromInternal Pointer(object));
42 } 43 }
43 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEventConstructor*, v8::Isolate*) { } 44 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI nterfaceEventConstructor*, 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(TestInterfaceEventConstructor*, v8::Handl e<v8::Object> creationContext, v8::Isolate*); 48 friend v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor*, v8::Handl e<v8::Object> creationContext, v8::Isolate*);
48 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceEventCon structor>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 49 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestInter faceEventConstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
49 }; 50 };
50 51
51 inline v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 52 inline v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
52 { 53 {
53 ASSERT(impl); 54 ASSERT(impl);
54 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl, isolate)); 55 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl, isolate));
55 return V8TestInterfaceEventConstructor::createWrapper(impl, creationContext, isolate); 56 return V8TestInterfaceEventConstructor::createWrapper(impl, creationContext, isolate);
56 } 57 }
57 58
58 inline v8::Handle<v8::Value> toV8(TestInterfaceEventConstructor* impl, v8::Handl e<v8::Object> creationContext, v8::Isolate* isolate) 59 inline v8::Handle<v8::Value> toV8(TestInterfaceEventConstructor* impl, v8::Handl e<v8::Object> creationContext, 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<V8TestInterfaceEventConstruc tor>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 103 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterfaceEventConstruc tor>(callbackInfo.GetReturnValue(), 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<TestInterfaceEventConstructor> impl , v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 109 inline v8::Handle<v8::Value> toV8(PassRefPtrWillBeRawPtr<TestInterfaceEventConst ructor> impl, v8::Handle<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<TestIn terfaceEventConstructor> impl) 115 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtrWillBeR awPtr<TestInterfaceEventConstructor> 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<TestInterfaceEventConstructor> impl) 121 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtrWillBeRawPtr<TestInterfaceEventConstructor> 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 stInterfaceEventConstructor> impl, Wrappable* wrappable) 127 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil lBeRawPtr<TestInterfaceEventConstructor> impl, Wrappable* wrappable)
127 { 128 {
128 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 129 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
129 } 130 }
130 131
131 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 132 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
132 133
133 } 134 }
134 #endif // V8TestInterfaceEventConstructor_h 135 #endif // V8TestInterfaceEventConstructor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698