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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 { | 45 { |
46 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 46 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
47 TestInterfaceNodeV8Internal::stringAttributeAttributeGetter(info); | 47 TestInterfaceNodeV8Internal::stringAttributeAttributeGetter(info); |
48 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 48 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
49 } | 49 } |
50 | 50 |
51 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 51 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
52 { | 52 { |
53 v8::Local<v8::Object> holder = info.Holder(); | 53 v8::Local<v8::Object> holder = info.Holder(); |
54 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); | 54 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
55 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 55 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
56 impl->setStringAttribute(cppValue); | 56 impl->setStringAttribute(cppValue); |
57 } | 57 } |
58 | 58 |
59 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 59 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
60 { | 60 { |
61 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 61 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
62 TestInterfaceNodeV8Internal::stringAttributeAttributeSetter(v8Value, info); | 62 TestInterfaceNodeV8Internal::stringAttributeAttributeSetter(v8Value, info); |
63 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 63 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
64 } | 64 } |
65 | 65 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 { | 145 { |
146 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 146 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
147 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetter(info); | 147 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetter(info); |
148 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 148 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
149 } | 149 } |
150 | 150 |
151 static void reflectStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 151 static void reflectStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
152 { | 152 { |
153 v8::Local<v8::Object> holder = info.Holder(); | 153 v8::Local<v8::Object> holder = info.Holder(); |
154 Element* impl = V8Element::toImpl(holder); | 154 Element* impl = V8Element::toImpl(holder); |
155 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 155 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
156 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); | 156 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); |
157 } | 157 } |
158 | 158 |
159 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 159 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
160 { | 160 { |
161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
162 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 162 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
163 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); | 163 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); |
164 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 164 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
165 } | 165 } |
166 | 166 |
167 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 167 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
168 { | 168 { |
169 v8::Local<v8::Object> holder = info.Holder(); | 169 v8::Local<v8::Object> holder = info.Holder(); |
170 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); | 170 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
171 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); | 171 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); |
172 } | 172 } |
173 | 173 |
174 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 174 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
175 { | 175 { |
176 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 176 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
177 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); | 177 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); |
178 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 178 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
179 } | 179 } |
180 | 180 |
181 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 181 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
182 { | 182 { |
183 v8::Local<v8::Object> holder = info.Holder(); | 183 v8::Local<v8::Object> holder = info.Holder(); |
184 Element* impl = V8Element::toImpl(holder); | 184 Element* impl = V8Element::toImpl(holder); |
185 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 185 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
186 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); | 186 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); |
187 } | 187 } |
188 | 188 |
189 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 189 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
190 { | 190 { |
191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
192 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 192 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
193 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); | 193 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); |
194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
195 } | 195 } |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 338 } |
339 | 339 |
340 void V8TestInterfaceNode::derefObject(ScriptWrappable* scriptWrappable) | 340 void V8TestInterfaceNode::derefObject(ScriptWrappable* scriptWrappable) |
341 { | 341 { |
342 #if !ENABLE(OILPAN) | 342 #if !ENABLE(OILPAN) |
343 scriptWrappable->toImpl<TestInterfaceNode>()->deref(); | 343 scriptWrappable->toImpl<TestInterfaceNode>()->deref(); |
344 #endif | 344 #endif |
345 } | 345 } |
346 | 346 |
347 } // namespace blink | 347 } // namespace blink |
OLD | NEW |