OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 namespace WebCore { | 75 namespace WebCore { |
76 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installPer
ContextEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype, fa
lse }; | 76 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installPer
ContextEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype, fa
lse }; |
77 | 77 |
78 namespace TestInterfaceEventConstructorV8Internal { | 78 namespace TestInterfaceEventConstructorV8Internal { |
79 | 79 |
80 template <typename T> void V8_USE(T) { } | 80 template <typename T> void V8_USE(T) { } |
81 | 81 |
82 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 82 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
83 { | 83 { |
84 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 84 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
85 v8SetReturnValueString(info, imp->readonlyStringAttribute(), info.GetIsolate
()); | 85 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
86 } | 86 } |
87 | 87 |
88 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 88 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
89 { | 89 { |
90 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
91 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet
ter(info); | 91 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet
ter(info); |
92 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 92 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
93 } | 93 } |
94 | 94 |
95 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) | 95 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) |
96 { | 96 { |
97 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 97 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
98 v8SetReturnValueString(info, imp->initializedByEventConstructorReadonlyStrin
gAttribute(), info.GetIsolate()); | 98 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStri
ngAttribute(), info.GetIsolate()); |
99 } | 99 } |
100 | 100 |
101 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 101 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
102 { | 102 { |
103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
104 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyStringAttributeAttributeGetter(info); | 104 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyStringAttributeAttributeGetter(info); |
105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
106 } | 106 } |
107 | 107 |
108 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 108 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
109 { | 109 { |
110 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 110 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
111 v8SetReturnValue(info, imp->initializedByEventConstructorReadonlyAnyAttribut
e().v8Value()); | 111 v8SetReturnValue(info, impl->initializedByEventConstructorReadonlyAnyAttribu
te().v8Value()); |
112 } | 112 } |
113 | 113 |
114 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 114 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
115 { | 115 { |
116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
117 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyAnyAttributeAttributeGetter(info); | 117 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyAnyAttributeAttributeGetter(info); |
118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
119 } | 119 } |
120 | 120 |
121 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) | 121 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) |
122 { | 122 { |
123 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 123 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
124 v8SetReturnValueBool(info, imp->initializedByEventConstructorReadonlyBoolean
Attribute()); | 124 v8SetReturnValueBool(info, impl->initializedByEventConstructorReadonlyBoolea
nAttribute()); |
125 } | 125 } |
126 | 126 |
127 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 127 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
128 { | 128 { |
129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
130 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyBooleanAttributeAttributeGetter(info); | 130 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyBooleanAttributeAttributeGetter(info); |
131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
132 } | 132 } |
133 | 133 |
134 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 134 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
135 { | 135 { |
136 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 136 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
137 v8SetReturnValueInt(info, imp->initializedByEventConstructorReadonlyLongAttr
ibute()); | 137 v8SetReturnValueInt(info, impl->initializedByEventConstructorReadonlyLongAtt
ribute()); |
138 } | 138 } |
139 | 139 |
140 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 140 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
141 { | 141 { |
142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
143 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); | 143 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); |
144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
145 } | 145 } |
146 | 146 |
147 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) | 147 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) |
148 { | 148 { |
149 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 149 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
150 RefPtr<Uint8Array> result(imp->initializedByEventConstructorReadonlyUint8Arr
ayAttribute()); | 150 RefPtr<Uint8Array> result(impl->initializedByEventConstructorReadonlyUint8Ar
rayAttribute()); |
151 if (result && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.Get
ReturnValue(), result.get())) | 151 if (result && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.Get
ReturnValue(), result.get())) |
152 return; | 152 return; |
153 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 153 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
154 if (!wrapper.IsEmpty()) { | 154 if (!wrapper.IsEmpty()) { |
155 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttrib
ute"), wrapper); | 155 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttrib
ute"), wrapper); |
156 v8SetReturnValue(info, wrapper); | 156 v8SetReturnValue(info, wrapper); |
157 } | 157 } |
158 } | 158 } |
159 | 159 |
160 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) | 160 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) |
161 { | 161 { |
162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
163 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); | 163 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); |
164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
165 } | 165 } |
166 | 166 |
167 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 167 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
168 { | 168 { |
169 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 169 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
170 RefPtr<TestInterfaceEmpty> result(imp->initializedByEventConstructorReadonly
TestInterfaceEmptyAttribute()); | 170 RefPtr<TestInterfaceEmpty> result(impl->initializedByEventConstructorReadonl
yTestInterfaceEmptyAttribute()); |
171 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 171 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
172 return; | 172 return; |
173 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 173 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
174 if (!wrapper.IsEmpty()) { | 174 if (!wrapper.IsEmpty()) { |
175 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmp
tyAttribute"), wrapper); | 175 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmp
tyAttribute"), wrapper); |
176 v8SetReturnValue(info, wrapper); | 176 v8SetReturnValue(info, wrapper); |
177 } | 177 } |
178 } | 178 } |
179 | 179 |
180 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 180 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
181 { | 181 { |
182 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 182 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
183 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); | 183 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); |
184 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 184 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
185 } | 185 } |
186 | 186 |
187 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 187 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
188 { | 188 { |
189 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 189 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
190 v8SetReturnValue(info, v8Array(imp->initializedByEventConstructorReadonlyTes
tInterfaceEmptyArrayAttribute(), info.GetIsolate())); | 190 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTe
stInterfaceEmptyArrayAttribute(), info.GetIsolate())); |
191 } | 191 } |
192 | 192 |
193 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) | 193 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) |
194 { | 194 { |
195 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 195 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
196 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); | 196 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); |
197 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 197 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
198 } | 198 } |
199 | 199 |
200 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 200 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
201 { | 201 { |
202 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 202 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
203 bool isNull = false; | 203 bool isNull = false; |
204 RefPtr<TestInterfaceEmpty> jsValue = imp->initializedByEventConstructorReado
nlyNullableTestInterfaceEmptyAttribute(isNull); | 204 RefPtr<TestInterfaceEmpty> jsValue = impl->initializedByEventConstructorRead
onlyNullableTestInterfaceEmptyAttribute(isNull); |
205 if (isNull) { | 205 if (isNull) { |
206 v8SetReturnValueNull(info); | 206 v8SetReturnValueNull(info); |
207 return; | 207 return; |
208 } | 208 } |
209 RefPtr<TestInterfaceEmpty> result(jsValue); | 209 RefPtr<TestInterfaceEmpty> result(jsValue); |
210 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 210 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
211 return; | 211 return; |
212 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 212 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
213 if (!wrapper.IsEmpty()) { | 213 if (!wrapper.IsEmpty()) { |
214 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInte
rfaceEmptyAttribute"), wrapper); | 214 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInte
rfaceEmptyAttribute"), wrapper); |
215 v8SetReturnValue(info, wrapper); | 215 v8SetReturnValue(info, wrapper); |
216 } | 216 } |
217 } | 217 } |
218 | 218 |
219 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) | 219 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) |
220 { | 220 { |
221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
222 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); | 222 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); |
223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
224 } | 224 } |
225 | 225 |
226 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 226 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
227 { | 227 { |
228 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 228 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
229 v8SetReturnValueString(info, imp->deprecatedInitializedByEventConstructorRea
donlyStringAttribute(), info.GetIsolate()); | 229 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); |
230 } | 230 } |
231 | 231 |
232 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 232 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
233 { | 233 { |
234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
235 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 235 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); |
236 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); | 236 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); |
237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
238 } | 238 } |
239 | 239 |
240 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 240 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
241 { | 241 { |
242 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 242 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
243 v8SetReturnValueString(info, imp->implementedAsName(), info.GetIsolate()); | 243 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); |
244 } | 244 } |
245 | 245 |
246 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) | 246 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) |
247 { | 247 { |
248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
249 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); | 249 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); |
250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
251 } | 251 } |
252 | 252 |
253 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 253 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
254 { | 254 { |
255 TestInterfaceEventConstructor* imp = V8TestInterfaceEventConstructor::toNati
ve(info.Holder()); | 255 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); |
256 v8SetReturnValueString(info, imp->deprecatedImplementedAsName(), info.GetIso
late()); | 256 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); |
257 } | 257 } |
258 | 258 |
259 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) | 259 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) |
260 { | 260 { |
261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
262 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 262 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); |
263 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); | 263 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); |
264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
265 } | 265 } |
266 | 266 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 fromInternalPointer(object)->deref(); | 442 fromInternalPointer(object)->deref(); |
443 } | 443 } |
444 | 444 |
445 template<> | 445 template<> |
446 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 446 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
447 { | 447 { |
448 return toV8(impl, creationContext, isolate); | 448 return toV8(impl, creationContext, isolate); |
449 } | 449 } |
450 | 450 |
451 } // namespace WebCore | 451 } // namespace WebCore |
OLD | NEW |