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 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestInterfaceEventConstructor.h" | 8 #include "V8TestInterfaceEventConstructor.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installPer
ContextEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype, fa
lse }; | 46 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installPer
ContextEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype, fa
lse }; |
47 | 47 |
48 namespace TestInterfaceEventConstructorV8Internal { | 48 namespace TestInterfaceEventConstructorV8Internal { |
49 | 49 |
50 template <typename T> void V8_USE(T) { } | 50 template <typename T> void V8_USE(T) { } |
51 | 51 |
52 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 52 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
53 { | 53 { |
54 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 54 v8::Handle<v8::Object> holder = info.Holder(); |
| 55 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
55 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 56 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
56 } | 57 } |
57 | 58 |
58 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 59 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
59 { | 60 { |
60 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 61 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
61 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet
ter(info); | 62 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet
ter(info); |
62 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 63 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
63 } | 64 } |
64 | 65 |
65 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) | 66 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) |
66 { | 67 { |
67 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 68 v8::Handle<v8::Object> holder = info.Holder(); |
| 69 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
68 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStri
ngAttribute(), info.GetIsolate()); | 70 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStri
ngAttribute(), info.GetIsolate()); |
69 } | 71 } |
70 | 72 |
71 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 73 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
72 { | 74 { |
73 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 75 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
74 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyStringAttributeAttributeGetter(info); | 76 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyStringAttributeAttributeGetter(info); |
75 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 77 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
76 } | 78 } |
77 | 79 |
78 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 80 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
79 { | 81 { |
80 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 82 v8::Handle<v8::Object> holder = info.Holder(); |
| 83 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
81 v8SetReturnValue(info, impl->initializedByEventConstructorReadonlyAnyAttribu
te().v8Value()); | 84 v8SetReturnValue(info, impl->initializedByEventConstructorReadonlyAnyAttribu
te().v8Value()); |
82 } | 85 } |
83 | 86 |
84 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 87 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
85 { | 88 { |
86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 89 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
87 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyAnyAttributeAttributeGetter(info); | 90 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyAnyAttributeAttributeGetter(info); |
88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 91 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
89 } | 92 } |
90 | 93 |
91 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) | 94 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) |
92 { | 95 { |
93 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 96 v8::Handle<v8::Object> holder = info.Holder(); |
| 97 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
94 v8SetReturnValueBool(info, impl->initializedByEventConstructorReadonlyBoolea
nAttribute()); | 98 v8SetReturnValueBool(info, impl->initializedByEventConstructorReadonlyBoolea
nAttribute()); |
95 } | 99 } |
96 | 100 |
97 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 101 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
98 { | 102 { |
99 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
100 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyBooleanAttributeAttributeGetter(info); | 104 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyBooleanAttributeAttributeGetter(info); |
101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
102 } | 106 } |
103 | 107 |
104 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 108 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
105 { | 109 { |
106 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 110 v8::Handle<v8::Object> holder = info.Holder(); |
| 111 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
107 v8SetReturnValueInt(info, impl->initializedByEventConstructorReadonlyLongAtt
ribute()); | 112 v8SetReturnValueInt(info, impl->initializedByEventConstructorReadonlyLongAtt
ribute()); |
108 } | 113 } |
109 | 114 |
110 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 115 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
111 { | 116 { |
112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
113 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); | 118 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); |
114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
115 } | 120 } |
116 | 121 |
117 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) | 122 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) |
118 { | 123 { |
119 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 124 v8::Handle<v8::Object> holder = info.Holder(); |
| 125 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
120 RefPtr<Uint8Array> result(impl->initializedByEventConstructorReadonlyUint8Ar
rayAttribute()); | 126 RefPtr<Uint8Array> result(impl->initializedByEventConstructorReadonlyUint8Ar
rayAttribute()); |
121 if (result && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.Get
ReturnValue(), result.get())) | 127 if (result && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.Get
ReturnValue(), result.get())) |
122 return; | 128 return; |
123 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 129 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
124 if (!wrapper.IsEmpty()) { | 130 if (!wrapper.IsEmpty()) { |
125 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttrib
ute"), wrapper); | 131 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"),
wrapper); |
126 v8SetReturnValue(info, wrapper); | 132 v8SetReturnValue(info, wrapper); |
127 } | 133 } |
128 } | 134 } |
129 | 135 |
130 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) | 136 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) |
131 { | 137 { |
132 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
133 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); | 139 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); |
134 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
135 } | 141 } |
136 | 142 |
137 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 143 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
138 { | 144 { |
139 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 145 v8::Handle<v8::Object> holder = info.Holder(); |
| 146 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
140 RefPtr<TestInterfaceEmpty> result(impl->initializedByEventConstructorReadonl
yTestInterfaceEmptyAttribute()); | 147 RefPtr<TestInterfaceEmpty> result(impl->initializedByEventConstructorReadonl
yTestInterfaceEmptyAttribute()); |
141 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 148 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
142 return; | 149 return; |
143 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 150 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
144 if (!wrapper.IsEmpty()) { | 151 if (!wrapper.IsEmpty()) { |
145 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmp
tyAttribute"), wrapper); | 152 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri
bute"), wrapper); |
146 v8SetReturnValue(info, wrapper); | 153 v8SetReturnValue(info, wrapper); |
147 } | 154 } |
148 } | 155 } |
149 | 156 |
150 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 157 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
151 { | 158 { |
152 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
153 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); | 160 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); |
154 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
155 } | 162 } |
156 | 163 |
157 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 164 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
158 { | 165 { |
159 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 166 v8::Handle<v8::Object> holder = info.Holder(); |
| 167 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
160 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTe
stInterfaceEmptyArrayAttribute(), info.GetIsolate())); | 168 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTe
stInterfaceEmptyArrayAttribute(), info.GetIsolate())); |
161 } | 169 } |
162 | 170 |
163 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) | 171 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) |
164 { | 172 { |
165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
166 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); | 174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); |
167 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
168 } | 176 } |
169 | 177 |
170 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
171 { | 179 { |
172 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 180 v8::Handle<v8::Object> holder = info.Holder(); |
| 181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
173 bool isNull = false; | 182 bool isNull = false; |
174 RefPtr<TestInterfaceEmpty> jsValue = impl->initializedByEventConstructorRead
onlyNullableTestInterfaceEmptyAttribute(isNull); | 183 RefPtr<TestInterfaceEmpty> jsValue = impl->initializedByEventConstructorRead
onlyNullableTestInterfaceEmptyAttribute(isNull); |
175 if (isNull) { | 184 if (isNull) { |
176 v8SetReturnValueNull(info); | 185 v8SetReturnValueNull(info); |
177 return; | 186 return; |
178 } | 187 } |
179 RefPtr<TestInterfaceEmpty> result(jsValue); | 188 RefPtr<TestInterfaceEmpty> result(jsValue); |
180 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 189 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
181 return; | 190 return; |
182 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 191 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
183 if (!wrapper.IsEmpty()) { | 192 if (!wrapper.IsEmpty()) { |
184 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInte
rfaceEmptyAttribute"), wrapper); | 193 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); |
185 v8SetReturnValue(info, wrapper); | 194 v8SetReturnValue(info, wrapper); |
186 } | 195 } |
187 } | 196 } |
188 | 197 |
189 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) | 198 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) |
190 { | 199 { |
191 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 200 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
192 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); | 201 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); |
193 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 202 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
194 } | 203 } |
195 | 204 |
196 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 205 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
197 { | 206 { |
198 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 207 v8::Handle<v8::Object> holder = info.Holder(); |
| 208 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
199 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); | 209 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); |
200 } | 210 } |
201 | 211 |
202 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 212 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
203 { | 213 { |
204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
205 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 215 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); |
206 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); | 216 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); |
207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
208 } | 218 } |
209 | 219 |
210 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 220 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
211 { | 221 { |
212 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 222 v8::Handle<v8::Object> holder = info.Holder(); |
| 223 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
213 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); | 224 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); |
214 } | 225 } |
215 | 226 |
216 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) | 227 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) |
217 { | 228 { |
218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 229 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
219 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); | 230 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); |
220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 231 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
221 } | 232 } |
222 | 233 |
223 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 234 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
224 { | 235 { |
225 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 236 v8::Handle<v8::Object> holder = info.Holder(); |
| 237 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
226 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); | 238 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); |
227 } | 239 } |
228 | 240 |
229 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) | 241 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) |
230 { | 242 { |
231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
232 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 244 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); |
233 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); | 245 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); |
234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
235 } | 247 } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 fromInternalPointer(object)->deref(); | 425 fromInternalPointer(object)->deref(); |
414 } | 426 } |
415 | 427 |
416 template<> | 428 template<> |
417 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 429 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
418 { | 430 { |
419 return toV8(impl, creationContext, isolate); | 431 return toV8(impl, creationContext, isolate); |
420 } | 432 } |
421 | 433 |
422 } // namespace WebCore | 434 } // namespace WebCore |
OLD | NEW |