| 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 "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eEventConstructor.h. | 33 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eEventConstructor.h. |
| 34 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 34 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 35 // bindings/core/v8/ScriptWrappable.h. | 35 // bindings/core/v8/ScriptWrappable.h. |
| 36 const WrapperTypeInfo& TestInterfaceEventConstructor::s_wrapperTypeInfo = V8Test
InterfaceEventConstructor::wrapperTypeInfo; | 36 const WrapperTypeInfo& TestInterfaceEventConstructor::s_wrapperTypeInfo = V8Test
InterfaceEventConstructor::wrapperTypeInfo; |
| 37 | 37 |
| 38 namespace TestInterfaceEventConstructorV8Internal { | 38 namespace TestInterfaceEventConstructorV8Internal { |
| 39 | 39 |
| 40 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 40 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 41 { | 41 { |
| 42 v8::Handle<v8::Object> holder = info.Holder(); | 42 v8::Local<v8::Object> holder = info.Holder(); |
| 43 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 43 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 44 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 44 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
| 45 } | 45 } |
| 46 | 46 |
| 47 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 47 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 48 { | 48 { |
| 49 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 49 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 50 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet
ter(info); | 50 TestInterfaceEventConstructorV8Internal::readonlyStringAttributeAttributeGet
ter(info); |
| 51 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 51 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 52 } | 52 } |
| 53 | 53 |
| 54 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) | 54 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 55 { | 55 { |
| 56 v8::Handle<v8::Object> holder = info.Holder(); | 56 v8::Local<v8::Object> holder = info.Holder(); |
| 57 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 57 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 58 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStri
ngAttribute(), info.GetIsolate()); | 58 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStri
ngAttribute(), info.GetIsolate()); |
| 59 } | 59 } |
| 60 | 60 |
| 61 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 61 static void initializedByEventConstructorReadonlyStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 62 { | 62 { |
| 63 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 63 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 64 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyStringAttributeAttributeGetter(info); | 64 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyStringAttributeAttributeGetter(info); |
| 65 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 65 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 66 } | 66 } |
| 67 | 67 |
| 68 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 68 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 69 { | 69 { |
| 70 v8::Handle<v8::Object> holder = info.Holder(); | 70 v8::Local<v8::Object> holder = info.Holder(); |
| 71 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 71 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 72 v8SetReturnValue(info, impl->initializedByEventConstructorReadonlyAnyAttribu
te().v8Value()); | 72 v8SetReturnValue(info, impl->initializedByEventConstructorReadonlyAnyAttribu
te().v8Value()); |
| 73 } | 73 } |
| 74 | 74 |
| 75 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 75 static void initializedByEventConstructorReadonlyAnyAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 76 { | 76 { |
| 77 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 77 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 78 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyAnyAttributeAttributeGetter(info); | 78 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyAnyAttributeAttributeGetter(info); |
| 79 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 79 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 80 } | 80 } |
| 81 | 81 |
| 82 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) | 82 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 83 { | 83 { |
| 84 v8::Handle<v8::Object> holder = info.Holder(); | 84 v8::Local<v8::Object> holder = info.Holder(); |
| 85 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 85 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 86 v8SetReturnValueBool(info, impl->initializedByEventConstructorReadonlyBoolea
nAttribute()); | 86 v8SetReturnValueBool(info, impl->initializedByEventConstructorReadonlyBoolea
nAttribute()); |
| 87 } | 87 } |
| 88 | 88 |
| 89 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 89 static void initializedByEventConstructorReadonlyBooleanAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 90 { | 90 { |
| 91 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 91 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 92 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyBooleanAttributeAttributeGetter(info); | 92 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyBooleanAttributeAttributeGetter(info); |
| 93 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 93 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 94 } | 94 } |
| 95 | 95 |
| 96 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 96 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 97 { | 97 { |
| 98 v8::Handle<v8::Object> holder = info.Holder(); | 98 v8::Local<v8::Object> holder = info.Holder(); |
| 99 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 99 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 100 v8SetReturnValueInt(info, impl->initializedByEventConstructorReadonlyLongAtt
ribute()); | 100 v8SetReturnValueInt(info, impl->initializedByEventConstructorReadonlyLongAtt
ribute()); |
| 101 } | 101 } |
| 102 | 102 |
| 103 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 103 static void initializedByEventConstructorReadonlyLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 104 { | 104 { |
| 105 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 105 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 106 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); | 106 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); |
| 107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 108 } | 108 } |
| 109 | 109 |
| 110 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) | 110 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 111 { | 111 { |
| 112 v8::Handle<v8::Object> holder = info.Holder(); | 112 v8::Local<v8::Object> holder = info.Holder(); |
| 113 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 113 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 114 RefPtr<DOMUint8Array> cppValue(impl->initializedByEventConstructorReadonlyUi
nt8ArrayAttribute()); | 114 RefPtr<DOMUint8Array> cppValue(impl->initializedByEventConstructorReadonlyUi
nt8ArrayAttribute()); |
| 115 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 115 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
| 116 return; | 116 return; |
| 117 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate
()); | 117 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate(
)); |
| 118 if (!wrapper.IsEmpty()) { | 118 if (!wrapper.IsEmpty()) { |
| 119 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"),
wrapper); | 119 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"),
wrapper); |
| 120 v8SetReturnValue(info, wrapper); | 120 v8SetReturnValue(info, wrapper); |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) | 124 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) |
| 125 { | 125 { |
| 126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 127 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); | 127 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); |
| 128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 129 } | 129 } |
| 130 | 130 |
| 131 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 131 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 132 { | 132 { |
| 133 v8::Handle<v8::Object> holder = info.Holder(); | 133 v8::Local<v8::Object> holder = info.Holder(); |
| 134 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 134 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 135 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyTestInterfaceEmptyAttribute()); | 135 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyTestInterfaceEmptyAttribute()); |
| 136 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 136 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
| 137 return; | 137 return; |
| 138 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate
()); | 138 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate(
)); |
| 139 if (!wrapper.IsEmpty()) { | 139 if (!wrapper.IsEmpty()) { |
| 140 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri
bute"), wrapper); | 140 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri
bute"), wrapper); |
| 141 v8SetReturnValue(info, wrapper); | 141 v8SetReturnValue(info, wrapper); |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 145 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 146 { | 146 { |
| 147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 148 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); | 148 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); |
| 149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 150 } | 150 } |
| 151 | 151 |
| 152 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 152 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 153 { | 153 { |
| 154 v8::Handle<v8::Object> holder = info.Holder(); | 154 v8::Local<v8::Object> holder = info.Holder(); |
| 155 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 155 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 156 v8SetReturnValue(info, toV8(impl->initializedByEventConstructorReadonlyTestI
nterfaceEmptyArrayAttribute(), info.Holder(), info.GetIsolate())); | 156 v8SetReturnValue(info, toV8(impl->initializedByEventConstructorReadonlyTestI
nterfaceEmptyArrayAttribute(), info.Holder(), info.GetIsolate())); |
| 157 } | 157 } |
| 158 | 158 |
| 159 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) | 159 static void initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribut
eAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 160 { | 160 { |
| 161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 162 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); | 162 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); |
| 163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 164 } | 164 } |
| 165 | 165 |
| 166 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 166 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 167 { | 167 { |
| 168 v8::Handle<v8::Object> holder = info.Holder(); | 168 v8::Local<v8::Object> holder = info.Holder(); |
| 169 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 169 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 170 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyNullableTestInterfaceEmptyAttribute()); | 170 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyNullableTestInterfaceEmptyAttribute()); |
| 171 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 171 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
| 172 return; | 172 return; |
| 173 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate
()); | 173 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate(
)); |
| 174 if (!wrapper.IsEmpty()) { | 174 if (!wrapper.IsEmpty()) { |
| 175 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); | 175 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); |
| 176 v8SetReturnValue(info, wrapper); | 176 v8SetReturnValue(info, wrapper); |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| 180 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) | 180 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 181 { | 181 { |
| 182 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 182 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 183 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); | 183 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); |
| 184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 185 } | 185 } |
| 186 | 186 |
| 187 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 187 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 188 { | 188 { |
| 189 v8::Handle<v8::Object> holder = info.Holder(); | 189 v8::Local<v8::Object> holder = info.Holder(); |
| 190 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 190 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 191 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); | 191 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); |
| 192 } | 192 } |
| 193 | 193 |
| 194 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 194 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 195 { | 195 { |
| 196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 197 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::initializedByEventConstructorReado
nlyStringAttribute); | 197 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::initializedByEventConstructorReado
nlyStringAttribute); |
| 198 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); | 198 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); |
| 199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 200 } | 200 } |
| 201 | 201 |
| 202 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 202 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 203 { | 203 { |
| 204 v8::Handle<v8::Object> holder = info.Holder(); | 204 v8::Local<v8::Object> holder = info.Holder(); |
| 205 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 205 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 206 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); | 206 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); |
| 207 } | 207 } |
| 208 | 208 |
| 209 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) | 209 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) |
| 210 { | 210 { |
| 211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 212 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); | 212 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); |
| 213 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 213 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 214 } | 214 } |
| 215 | 215 |
| 216 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 216 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 217 { | 217 { |
| 218 v8::Handle<v8::Object> holder = info.Holder(); | 218 v8::Local<v8::Object> holder = info.Holder(); |
| 219 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 219 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 220 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); | 220 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); |
| 221 } | 221 } |
| 222 | 222 |
| 223 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) | 223 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) |
| 224 { | 224 { |
| 225 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 225 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 226 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::initializedByEventConstructorReado
nlyStringAttribute); | 226 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::initializedByEventConstructorReado
nlyStringAttribute); |
| 227 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); | 227 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); |
| 228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 251 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8At
omicString(info.GetIsolate(), "initializedByEventConstructorReadonlyAnyAttribute
"), initializedByEventConstructorReadonlyAnyAttribute); | 251 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8At
omicString(info.GetIsolate(), "initializedByEventConstructorReadonlyAnyAttribute
"), initializedByEventConstructorReadonlyAnyAttribute); |
| 252 } | 252 } |
| 253 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); | 253 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); |
| 254 if (exceptionState.throwIfNeeded()) | 254 if (exceptionState.throwIfNeeded()) |
| 255 return; | 255 return; |
| 256 if (DOMWrapperWorld::current(info.GetIsolate()).isIsolatedWorld()) { | 256 if (DOMWrapperWorld::current(info.GetIsolate()).isIsolatedWorld()) { |
| 257 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 257 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 258 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIs
olate(), initializedByEventConstructorReadonlyAnyAttribute)); | 258 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIs
olate(), initializedByEventConstructorReadonlyAnyAttribute)); |
| 259 } | 259 } |
| 260 | 260 |
| 261 v8::Handle<v8::Object> wrapper = info.Holder(); | 261 v8::Local<v8::Object> wrapper = info.Holder(); |
| 262 event->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventConstruc
tor::wrapperTypeInfo, wrapper); | 262 event->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventConstruc
tor::wrapperTypeInfo, wrapper); |
| 263 v8SetReturnValue(info, wrapper); | 263 v8SetReturnValue(info, wrapper); |
| 264 } | 264 } |
| 265 | 265 |
| 266 } // namespace TestInterfaceEventConstructorV8Internal | 266 } // namespace TestInterfaceEventConstructorV8Internal |
| 267 | 267 |
| 268 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventCons
tructorAttributes[] = { | 268 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventCons
tructorAttributes[] = { |
| 269 {"readonlyStringAttribute", TestInterfaceEventConstructorV8Internal::readonl
yStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 269 {"readonlyStringAttribute", TestInterfaceEventConstructorV8Internal::readonl
yStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
| 270 {"initializedByEventConstructorReadonlyStringAttribute", TestInterfaceEventC
onstructorV8Internal::initializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInstance}, | 270 {"initializedByEventConstructorReadonlyStringAttribute", TestInterfaceEventC
onstructorV8Internal::initializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInstance}, |
| 271 {"initializedByEventConstructorReadonlyAnyAttribute", TestInterfaceEventCons
tructorV8Internal::initializedByEventConstructorReadonlyAnyAttributeAttributeGet
terCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cas
t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnInstance}, | 271 {"initializedByEventConstructorReadonlyAnyAttribute", TestInterfaceEventCons
tructorV8Internal::initializedByEventConstructorReadonlyAnyAttributeAttributeGet
terCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cas
t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnInstance}, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 } | 381 } |
| 382 | 382 |
| 383 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 383 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
| 384 { | 384 { |
| 385 #if !ENABLE(OILPAN) | 385 #if !ENABLE(OILPAN) |
| 386 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); | 386 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); |
| 387 #endif | 387 #endif |
| 388 } | 388 } |
| 389 | 389 |
| 390 } // namespace blink | 390 } // namespace blink |
| OLD | NEW |