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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::refObject, V8TestInterfaceEventConstructor::derefObject, V8TestIn
terfaceEventConstructor::trace, 0, 0, V8TestInterfaceEventConstructor::installCo
nditionallyEnabledMethods, V8TestInterfaceEventConstructor::installConditionally
EnabledProperties, &V8Event::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObject
Prototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventT
arget, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObje
ct }; | 31 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::refObject, V8TestInterfaceEventConstructor::derefObject, V8TestIn
terfaceEventConstructor::trace, 0, 0, V8TestInterfaceEventConstructor::installCo
nditionallyEnabledMethods, V8TestInterfaceEventConstructor::installConditionally
EnabledProperties, &V8Event::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObject
Prototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventT
arget, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObje
ct }; |
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::FunctionCallbackInf
o<v8::Value>& info) |
41 { | 41 { |
42 v8::Local<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(const v8::FunctionCal
lbackInfo<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::FunctionCallbackInfo<v8::Value>& info) |
55 { | 55 { |
56 v8::Local<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(const v8::FunctionCallbackInfo<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::FunctionCallbackInfo<v8::Value>& info) |
69 { | 69 { |
70 v8::Local<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(const v8::FunctionCallbackInfo<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::FunctionCallbackInfo<v8::Value>& info) |
83 { | 83 { |
84 v8::Local<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(const v8::FunctionCallbackInfo<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::FunctionCallbackInfo<v8::Value>& info) |
97 { | 97 { |
98 v8::Local<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(const v8::FunctionCallbackInfo<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::FunctionCallbackInfo<v8::Value>& info) |
111 { | 111 { |
112 v8::Local<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::Local<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(const v8::FunctionCallbackInfo<v8::Value>& info) |
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::FunctionCallbackInfo<v8::Value>& info) |
132 { | 132 { |
133 v8::Local<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::Local<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(const v8::FunctionCallbackInfo<v8::Value>& 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::FunctionCallbackInfo<v8::Value>& info) |
153 { | 153 { |
154 v8::Local<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(const v8::FunctionCallbackInfo<v8::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::FunctionCallbackInfo<v8::Value>& info) |
167 { | 167 { |
168 v8::Local<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::Local<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(const v8::FunctionCallbackInfo<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::FunctionCallbackInfo<v8::Value>& info) |
188 { | 188 { |
189 v8::Local<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(const v8::FunctionCallbackInfo<v8::Value>& 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::FunctionCallbackInfo<v8::Value>& info) |
203 { | 203 { |
204 v8::Local<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(const v8::FunctionCallbackInfo<v8::Value>& 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::FunctionCallbackInfo<v8::Value>& info) |
217 { | 217 { |
218 v8::Local<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(const v8::FunctionCallbackInfo<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"); |
229 } | 229 } |
230 | 230 |
231 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 231 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
232 { | 232 { |
233 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), info.GetIsolate()); | 233 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), info.GetIsolate()); |
(...skipping 26 matching lines...) Expand all Loading... |
260 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIs
olate(), initializedByEventConstructorReadonlyAnyAttribute)); | 260 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIs
olate(), initializedByEventConstructorReadonlyAnyAttribute)); |
261 } | 261 } |
262 | 262 |
263 v8::Local<v8::Object> wrapper = info.Holder(); | 263 v8::Local<v8::Object> wrapper = info.Holder(); |
264 event->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventConstruc
tor::wrapperTypeInfo, wrapper); | 264 event->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventConstruc
tor::wrapperTypeInfo, wrapper); |
265 v8SetReturnValue(info, wrapper); | 265 v8SetReturnValue(info, wrapper); |
266 } | 266 } |
267 | 267 |
268 } // namespace TestInterfaceEventConstructorV8Internal | 268 } // namespace TestInterfaceEventConstructorV8Internal |
269 | 269 |
270 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventCons
tructorAttributes[] = { | 270 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventConst
ructorAccessors[] = { |
271 {"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}, | 271 {"readonlyStringAttribute", TestInterfaceEventConstructorV8Internal::readonl
yStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts}, |
272 {"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}, | 272 {"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}, |
273 {"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}, | 273 {"initializedByEventConstructorReadonlyAnyAttribute", TestInterfaceEventCons
tructorV8Internal::initializedByEventConstructorReadonlyAnyAttributeAttributeGet
terCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cas
t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
274 {"initializedByEventConstructorReadonlyBooleanAttribute", TestInterfaceEvent
ConstructorV8Internal::initializedByEventConstructorReadonlyBooleanAttributeAttr
ibuteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | 274 {"initializedByEventConstructorReadonlyBooleanAttribute", TestInterfaceEvent
ConstructorV8Internal::initializedByEventConstructorReadonlyBooleanAttributeAttr
ibuteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts}, |
275 {"initializedByEventConstructorReadonlyLongAttribute", TestInterfaceEventCon
structorV8Internal::initializedByEventConstructorReadonlyLongAttributeAttributeG
etterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | 275 {"initializedByEventConstructorReadonlyLongAttribute", TestInterfaceEventCon
structorV8Internal::initializedByEventConstructorReadonlyLongAttributeAttributeG
etterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
276 {"initializedByEventConstructorReadonlyUint8ArrayAttribute", TestInterfaceEv
entConstructorV8Internal::initializedByEventConstructorReadonlyUint8ArrayAttribu
teAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, | 276 {"initializedByEventConstructorReadonlyUint8ArrayAttribute", TestInterfaceEv
entConstructorV8Internal::initializedByEventConstructorReadonlyUint8ArrayAttribu
teAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts}, |
277 {"initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute", TestInt
erfaceEventConstructorV8Internal::initializedByEventConstructorReadonlyTestInter
faceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 277 {"initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute", TestInt
erfaceEventConstructorV8Internal::initializedByEventConstructorReadonlyTestInter
faceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts}, |
278 {"initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribute", Te
stInterfaceEventConstructorV8Internal::initializedByEventConstructorReadonlyTest
InterfaceEmptyArrayAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO
MConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 278 {"initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribute", Te
stInterfaceEventConstructorV8Internal::initializedByEventConstructorReadonlyTest
InterfaceEmptyArrayAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO
MConfiguration::ExposedToAllScripts}, |
279 {"initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttribute",
TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadonlyN
ullableTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 279 {"initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttribute",
TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadonlyN
ullableTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts}, |
280 {"deprecatedInitializedByEventConstructorReadonlyStringAttribute", TestInter
faceEventConstructorV8Internal::deprecatedInitializedByEventConstructorReadonlyS
tringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 280 {"deprecatedInitializedByEventConstructorReadonlyStringAttribute", TestInter
faceEventConstructorV8Internal::deprecatedInitializedByEventConstructorReadonlyS
tringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts}, |
281 {"implementedAsInitializedByEventConstructorReadonlyStringAttribute", TestIn
terfaceEventConstructorV8Internal::implementedAsInitializedByEventConstructorRea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 281 {"implementedAsInitializedByEventConstructorReadonlyStringAttribute", TestIn
terfaceEventConstructorV8Internal::implementedAsInitializedByEventConstructorRea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts}, |
282 {"deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribut
e", TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | 282 {"deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribut
e", TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts}, |
283 }; | 283 }; |
284 | 284 |
285 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&
eventInit, const Dictionary& options, ExceptionState& exceptionState, const v8::
FunctionCallbackInfo<v8::Value>& info) | 285 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&
eventInit, const Dictionary& options, ExceptionState& exceptionState, const v8::
FunctionCallbackInfo<v8::Value>& info) |
286 { | 286 { |
287 Dictionary::ConversionContext conversionContext(exceptionState); | 287 Dictionary::ConversionContext conversionContext(exceptionState); |
288 if (!initializeEvent(eventInit, options, exceptionState, info)) | 288 if (!initializeEvent(eventInit, options, exceptionState, info)) |
289 return false; | 289 return false; |
290 | 290 |
291 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"DOMString", false), "initializedByEventConstructorReadonlyStringAttribute", eve
ntInit.initializedByEventConstructorReadonlyStringAttribute)) | 291 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"DOMString", false), "initializedByEventConstructorReadonlyStringAttribute", eve
ntInit.initializedByEventConstructorReadonlyStringAttribute)) |
292 return false; | 292 return false; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 TestInterfaceEventConstructorV8Internal::constructor(info); | 335 TestInterfaceEventConstructorV8Internal::constructor(info); |
336 } | 336 } |
337 | 337 |
338 static void installV8TestInterfaceEventConstructorTemplate(v8::Local<v8::Functio
nTemplate> functionTemplate, v8::Isolate* isolate) | 338 static void installV8TestInterfaceEventConstructorTemplate(v8::Local<v8::Functio
nTemplate> functionTemplate, v8::Isolate* isolate) |
339 { | 339 { |
340 functionTemplate->ReadOnlyPrototype(); | 340 functionTemplate->ReadOnlyPrototype(); |
341 | 341 |
342 v8::Local<v8::Signature> defaultSignature; | 342 v8::Local<v8::Signature> defaultSignature; |
343 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceEventConstructor", V8Event::domTemplate(isolate), V8
TestInterfaceEventConstructor::internalFieldCount, | 343 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceEventConstructor", V8Event::domTemplate(isolate), V8
TestInterfaceEventConstructor::internalFieldCount, |
344 V8TestInterfaceEventConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterf
aceEventConstructorAttributes), | |
345 0, 0, | 344 0, 0, |
| 345 V8TestInterfaceEventConstructorAccessors, WTF_ARRAY_LENGTH(V8TestInterfa
ceEventConstructorAccessors), |
346 0, 0); | 346 0, 0); |
347 functionTemplate->SetCallHandler(V8TestInterfaceEventConstructor::constructo
rCallback); | 347 functionTemplate->SetCallHandler(V8TestInterfaceEventConstructor::constructo
rCallback); |
348 functionTemplate->SetLength(1); | 348 functionTemplate->SetLength(1); |
349 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 349 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
350 ALLOW_UNUSED_LOCAL(instanceTemplate); | 350 ALLOW_UNUSED_LOCAL(instanceTemplate); |
351 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 351 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
352 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 352 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
353 | 353 |
354 // Custom toString template | 354 // Custom toString template |
355 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 355 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
(...skipping 27 matching lines...) Expand all Loading... |
383 } | 383 } |
384 | 384 |
385 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 385 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
386 { | 386 { |
387 #if !ENABLE(OILPAN) | 387 #if !ENABLE(OILPAN) |
388 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); | 388 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); |
389 #endif | 389 #endif |
390 } | 390 } |
391 | 391 |
392 } // namespace blink | 392 } // namespace blink |
OLD | NEW |