| 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::Isolate* isolate = info.GetIsolate(); |
| 125 v8::Handle<v8::Object> holder = info.Holder(); |
| 126 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 120 RefPtr<Uint8Array> result(impl->initializedByEventConstructorReadonlyUint8Ar
rayAttribute()); | 127 RefPtr<Uint8Array> result(impl->initializedByEventConstructorReadonlyUint8Ar
rayAttribute()); |
| 121 if (result && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.Get
ReturnValue(), result.get())) | 128 if (result && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.Get
ReturnValue(), result.get())) |
| 122 return; | 129 return; |
| 123 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 130 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, isolate); |
| 124 if (!wrapper.IsEmpty()) { | 131 if (!wrapper.IsEmpty()) { |
| 125 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttrib
ute"), wrapper); | 132 V8HiddenValue::setHiddenValue(isolate, holder, v8AtomicString(info.GetIs
olate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"), wrapper); |
| 126 v8SetReturnValue(info, wrapper); | 133 v8SetReturnValue(info, wrapper); |
| 127 } | 134 } |
| 128 } | 135 } |
| 129 | 136 |
| 130 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) | 137 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) |
| 131 { | 138 { |
| 132 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 139 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 133 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); | 140 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); |
| 134 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 135 } | 142 } |
| 136 | 143 |
| 137 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 144 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 138 { | 145 { |
| 139 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 146 v8::Isolate* isolate = info.GetIsolate(); |
| 147 v8::Handle<v8::Object> holder = info.Holder(); |
| 148 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 140 RefPtr<TestInterfaceEmpty> result(impl->initializedByEventConstructorReadonl
yTestInterfaceEmptyAttribute()); | 149 RefPtr<TestInterfaceEmpty> result(impl->initializedByEventConstructorReadonl
yTestInterfaceEmptyAttribute()); |
| 141 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 150 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
| 142 return; | 151 return; |
| 143 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 152 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, isolate); |
| 144 if (!wrapper.IsEmpty()) { | 153 if (!wrapper.IsEmpty()) { |
| 145 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmp
tyAttribute"), wrapper); | 154 V8HiddenValue::setHiddenValue(isolate, holder, v8AtomicString(info.GetIs
olate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute"), wr
apper); |
| 146 v8SetReturnValue(info, wrapper); | 155 v8SetReturnValue(info, wrapper); |
| 147 } | 156 } |
| 148 } | 157 } |
| 149 | 158 |
| 150 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 159 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 151 { | 160 { |
| 152 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 161 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 153 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); | 162 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); |
| 154 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 155 } | 164 } |
| 156 | 165 |
| 157 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 166 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 158 { | 167 { |
| 159 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 168 v8::Handle<v8::Object> holder = info.Holder(); |
| 169 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 160 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTe
stInterfaceEmptyArrayAttribute(), info.GetIsolate())); | 170 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTe
stInterfaceEmptyArrayAttribute(), info.GetIsolate())); |
| 161 } | 171 } |
| 162 | 172 |
| 163 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) | 173 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 164 { | 174 { |
| 165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 166 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); | 176 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); |
| 167 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 177 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 168 } | 178 } |
| 169 | 179 |
| 170 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 180 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 171 { | 181 { |
| 172 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 182 v8::Isolate* isolate = info.GetIsolate(); |
| 183 v8::Handle<v8::Object> holder = info.Holder(); |
| 184 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 173 bool isNull = false; | 185 bool isNull = false; |
| 174 RefPtr<TestInterfaceEmpty> jsValue = impl->initializedByEventConstructorRead
onlyNullableTestInterfaceEmptyAttribute(isNull); | 186 RefPtr<TestInterfaceEmpty> jsValue = impl->initializedByEventConstructorRead
onlyNullableTestInterfaceEmptyAttribute(isNull); |
| 175 if (isNull) { | 187 if (isNull) { |
| 176 v8SetReturnValueNull(info); | 188 v8SetReturnValueNull(info); |
| 177 return; | 189 return; |
| 178 } | 190 } |
| 179 RefPtr<TestInterfaceEmpty> result(jsValue); | 191 RefPtr<TestInterfaceEmpty> result(jsValue); |
| 180 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 192 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
| 181 return; | 193 return; |
| 182 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 194 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, isolate); |
| 183 if (!wrapper.IsEmpty()) { | 195 if (!wrapper.IsEmpty()) { |
| 184 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInte
rfaceEmptyAttribute"), wrapper); | 196 V8HiddenValue::setHiddenValue(isolate, holder, v8AtomicString(info.GetIs
olate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttribu
te"), wrapper); |
| 185 v8SetReturnValue(info, wrapper); | 197 v8SetReturnValue(info, wrapper); |
| 186 } | 198 } |
| 187 } | 199 } |
| 188 | 200 |
| 189 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) | 201 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 190 { | 202 { |
| 191 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 192 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); | 204 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); |
| 193 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 194 } | 206 } |
| 195 | 207 |
| 196 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 208 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 197 { | 209 { |
| 198 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 210 v8::Handle<v8::Object> holder = info.Holder(); |
| 211 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 199 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); | 212 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); |
| 200 } | 213 } |
| 201 | 214 |
| 202 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 215 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 203 { | 216 { |
| 204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 205 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 218 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); |
| 206 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); | 219 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); |
| 207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 208 } | 221 } |
| 209 | 222 |
| 210 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 223 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 211 { | 224 { |
| 212 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 225 v8::Handle<v8::Object> holder = info.Holder(); |
| 226 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 213 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); | 227 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); |
| 214 } | 228 } |
| 215 | 229 |
| 216 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) | 230 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) |
| 217 { | 231 { |
| 218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 219 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); | 233 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); |
| 220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 221 } | 235 } |
| 222 | 236 |
| 223 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 237 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 224 { | 238 { |
| 225 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(info.Holder()); | 239 v8::Handle<v8::Object> holder = info.Holder(); |
| 240 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 226 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); | 241 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); |
| 227 } | 242 } |
| 228 | 243 |
| 229 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) | 244 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) |
| 230 { | 245 { |
| 231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 232 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 247 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); |
| 233 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); | 248 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); |
| 234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 235 } | 250 } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 fromInternalPointer(object)->deref(); | 428 fromInternalPointer(object)->deref(); |
| 414 } | 429 } |
| 415 | 430 |
| 416 template<> | 431 template<> |
| 417 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 432 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 418 { | 433 { |
| 419 return toV8(impl, creationContext, isolate); | 434 return toV8(impl, creationContext, isolate); |
| 420 } | 435 } |
| 421 | 436 |
| 422 } // namespace WebCore | 437 } // namespace WebCore |
| OLD | NEW |