OLD | NEW |
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 V8TestSpecialOperationsNotEnumerable_h | 7 #ifndef V8TestSpecialOperationsIdentifierRaisesException_h |
8 #define V8TestSpecialOperationsNotEnumerable_h | 8 #define V8TestSpecialOperationsIdentifierRaisesException_h |
9 | 9 |
10 #include "bindings/tests/idls/TestSpecialOperationsNotEnumerable.h" | 10 #include "bindings/tests/idls/TestSpecialOperationsIdentifierRaisesException.h" |
11 #include "bindings/v8/V8Binding.h" | 11 #include "bindings/v8/V8Binding.h" |
12 #include "bindings/v8/V8DOMWrapper.h" | 12 #include "bindings/v8/V8DOMWrapper.h" |
13 #include "bindings/v8/WrapperTypeInfo.h" | 13 #include "bindings/v8/WrapperTypeInfo.h" |
14 #include "heap/Handle.h" | 14 #include "heap/Handle.h" |
15 | 15 |
16 namespace WebCore { | 16 namespace WebCore { |
17 | 17 |
18 class V8TestSpecialOperationsNotEnumerable { | 18 class V8TestSpecialOperationsIdentifierRaisesException { |
19 public: | 19 public: |
20 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); | 20 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
21 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); | 21 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); |
22 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 22 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
23 static TestSpecialOperationsNotEnumerable* toNative(v8::Handle<v8::Object> o
bject) | 23 static TestSpecialOperationsIdentifierRaisesException* toNative(v8::Handle<v
8::Object> object) |
24 { | 24 { |
25 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); | 25 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); |
26 } | 26 } |
27 static TestSpecialOperationsNotEnumerable* toNativeWithTypeCheck(v8::Isolate
*, v8::Handle<v8::Value>); | 27 static TestSpecialOperationsIdentifierRaisesException* toNativeWithTypeCheck
(v8::Isolate*, v8::Handle<v8::Value>); |
28 static const WrapperTypeInfo wrapperTypeInfo; | 28 static const WrapperTypeInfo wrapperTypeInfo; |
29 static void derefObject(void*); | 29 static void derefObject(void*); |
30 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 30 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
31 static inline void* toInternalPointer(TestSpecialOperationsNotEnumerable* im
pl) | 31 static inline void* toInternalPointer(TestSpecialOperationsIdentifierRaisesE
xception* impl) |
32 { | 32 { |
33 return impl; | 33 return impl; |
34 } | 34 } |
35 | 35 |
36 static inline TestSpecialOperationsNotEnumerable* fromInternalPointer(void*
object) | 36 static inline TestSpecialOperationsIdentifierRaisesException* fromInternalPo
inter(void* object) |
37 { | 37 { |
38 return static_cast<TestSpecialOperationsNotEnumerable*>(object); | 38 return static_cast<TestSpecialOperationsIdentifierRaisesException*>(obje
ct); |
39 } | 39 } |
40 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestS
pecialOperationsNotEnumerable*, v8::Isolate*) { } | 40 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestS
pecialOperationsIdentifierRaisesException*, v8::Isolate*) { } |
41 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } | 41 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } |
42 | 42 |
43 private: | 43 private: |
44 friend v8::Handle<v8::Object> wrap(TestSpecialOperationsNotEnumerable*, v8::
Handle<v8::Object> creationContext, v8::Isolate*); | 44 friend v8::Handle<v8::Object> wrap(TestSpecialOperationsIdentifierRaisesExce
ption*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
45 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestSpecialOperations
NotEnumerable>, v8::Handle<v8::Object> creationContext, v8::Isolate*); | 45 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestSpecialOperations
IdentifierRaisesException>, v8::Handle<v8::Object> creationContext, v8::Isolate*
); |
46 }; | 46 }; |
47 | 47 |
48 inline v8::Handle<v8::Object> wrap(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) | 48 inline v8::Handle<v8::Object> wrap(TestSpecialOperationsIdentifierRaisesExceptio
n* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
49 { | 49 { |
50 ASSERT(impl); | 50 ASSERT(impl); |
51 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsNotEnumerable>(
impl, isolate)); | 51 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsIdentifierRaise
sException>(impl, isolate)); |
52 return V8TestSpecialOperationsNotEnumerable::createWrapper(impl, creationCon
text, isolate); | 52 return V8TestSpecialOperationsIdentifierRaisesException::createWrapper(impl,
creationContext, isolate); |
53 } | 53 } |
54 | 54 |
55 inline v8::Handle<v8::Value> toV8(TestSpecialOperationsNotEnumerable* impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) | 55 inline v8::Handle<v8::Value> toV8(TestSpecialOperationsIdentifierRaisesException
* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
56 { | 56 { |
57 if (UNLIKELY(!impl)) | 57 if (UNLIKELY(!impl)) |
58 return v8::Null(isolate); | 58 return v8::Null(isolate); |
59 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestSpecialOperat
ionsNotEnumerable>(impl, isolate); | 59 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestSpecialOperat
ionsIdentifierRaisesException>(impl, isolate); |
60 if (!wrapper.IsEmpty()) | 60 if (!wrapper.IsEmpty()) |
61 return wrapper; | 61 return wrapper; |
62 return wrap(impl, creationContext, isolate); | 62 return wrap(impl, creationContext, isolate); |
63 } | 63 } |
64 | 64 |
65 template<typename CallbackInfo> | 65 template<typename CallbackInfo> |
66 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestSpecialOperat
ionsNotEnumerable* impl) | 66 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestSpecialOperat
ionsIdentifierRaisesException* impl) |
67 { | 67 { |
68 if (UNLIKELY(!impl)) { | 68 if (UNLIKELY(!impl)) { |
69 v8SetReturnValueNull(callbackInfo); | 69 v8SetReturnValueNull(callbackInfo); |
70 return; | 70 return; |
71 } | 71 } |
72 if (DOMDataStore::setReturnValueFromWrapper<V8TestSpecialOperationsNotEnumer
able>(callbackInfo.GetReturnValue(), impl)) | 72 if (DOMDataStore::setReturnValueFromWrapper<V8TestSpecialOperationsIdentifie
rRaisesException>(callbackInfo.GetReturnValue(), impl)) |
73 return; | 73 return; |
74 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 74 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
75 v8SetReturnValue(callbackInfo, wrapper); | 75 v8SetReturnValue(callbackInfo, wrapper); |
76 } | 76 } |
77 | 77 |
78 template<typename CallbackInfo> | 78 template<typename CallbackInfo> |
79 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestS
pecialOperationsNotEnumerable* impl) | 79 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestS
pecialOperationsIdentifierRaisesException* impl) |
80 { | 80 { |
81 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld()); | 81 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); |
82 if (UNLIKELY(!impl)) { | 82 if (UNLIKELY(!impl)) { |
83 v8SetReturnValueNull(callbackInfo); | 83 v8SetReturnValueNull(callbackInfo); |
84 return; | 84 return; |
85 } | 85 } |
86 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestSpecialOperati
onsNotEnumerable>(callbackInfo.GetReturnValue(), impl)) | 86 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestSpecialOperati
onsIdentifierRaisesException>(callbackInfo.GetReturnValue(), impl)) |
87 return; | 87 return; |
88 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); | 88 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
89 v8SetReturnValue(callbackInfo, wrapper); | 89 v8SetReturnValue(callbackInfo, wrapper); |
90 } | 90 } |
91 | 91 |
92 template<class CallbackInfo, class Wrappable> | 92 template<class CallbackInfo, class Wrappable> |
93 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestSpecialOp
erationsNotEnumerable* impl, Wrappable* wrappable) | 93 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestSpecialOp
erationsIdentifierRaisesException* impl, Wrappable* wrappable) |
94 { | 94 { |
95 if (UNLIKELY(!impl)) { | 95 if (UNLIKELY(!impl)) { |
96 v8SetReturnValueNull(callbackInfo); | 96 v8SetReturnValueNull(callbackInfo); |
97 return; | 97 return; |
98 } | 98 } |
99 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestSpecialOperationsNotEn
umerable>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)
) | 99 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestSpecialOperationsIdent
ifierRaisesException>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder()
, wrappable)) |
100 return; | 100 return; |
101 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 101 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
102 v8SetReturnValue(callbackInfo, wrapper); | 102 v8SetReturnValue(callbackInfo, wrapper); |
103 } | 103 } |
104 | 104 |
105 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestSpecialOperationsNotEnumerable>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 105 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestSpecialOperationsIdentifierRais
esException> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
106 { | 106 { |
107 return toV8(impl.get(), creationContext, isolate); | 107 return toV8(impl.get(), creationContext, isolate); |
108 } | 108 } |
109 | 109 |
110 template<class CallbackInfo> | 110 template<class CallbackInfo> |
111 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestSp
ecialOperationsNotEnumerable> impl) | 111 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestSp
ecialOperationsIdentifierRaisesException> impl) |
112 { | 112 { |
113 v8SetReturnValue(callbackInfo, impl.get()); | 113 v8SetReturnValue(callbackInfo, impl.get()); |
114 } | 114 } |
115 | 115 |
116 template<class CallbackInfo> | 116 template<class CallbackInfo> |
117 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestSpecialOperationsNotEnumerable> impl) | 117 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestSpecialOperationsIdentifierRaisesException> impl) |
118 { | 118 { |
119 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); | 119 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); |
120 } | 120 } |
121 | 121 |
122 template<class CallbackInfo, class Wrappable> | 122 template<class CallbackInfo, class Wrappable> |
123 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stSpecialOperationsNotEnumerable> impl, Wrappable* wrappable) | 123 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stSpecialOperationsIdentifierRaisesException> impl, Wrappable* wrappable) |
124 { | 124 { |
125 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 125 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
126 } | 126 } |
127 | 127 |
128 } | 128 } |
129 #endif // V8TestSpecialOperationsNotEnumerable_h | 129 #endif // V8TestSpecialOperationsIdentifierRaisesException_h |
OLD | NEW |