Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(957)

Side by Side Diff: Source/bindings/tests/results/V8SVGTestInterface.cpp

Issue 503043003: Rename CustomElementCallbackDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Full patch Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "V8SVGTestInterface.h" 8 #include "V8SVGTestInterface.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
11 #include "bindings/core/v8/V8DOMConfiguration.h" 11 #include "bindings/core/v8/V8DOMConfiguration.h"
12 #include "bindings/core/v8/V8HiddenValue.h" 12 #include "bindings/core/v8/V8HiddenValue.h"
13 #include "bindings/core/v8/V8ObjectConstructor.h" 13 #include "bindings/core/v8/V8ObjectConstructor.h"
14 #include "core/SVGNames.h" 14 #include "core/SVGNames.h"
15 #include "core/dom/ContextFeatures.h" 15 #include "core/dom/ContextFeatures.h"
16 #include "core/dom/Document.h" 16 #include "core/dom/Document.h"
17 #include "core/dom/custom/CustomElementCallbackDispatcher.h" 17 #include "core/dom/custom/CustomElementProcessingStack.h"
18 #include "platform/RuntimeEnabledFeatures.h" 18 #include "platform/RuntimeEnabledFeatures.h"
19 #include "platform/TraceEvent.h" 19 #include "platform/TraceEvent.h"
20 #include "wtf/GetPtr.h" 20 #include "wtf/GetPtr.h"
21 #include "wtf/RefPtr.h" 21 #include "wtf/RefPtr.h"
22 22
23 namespace blink { 23 namespace blink {
24 24
25 static void initializeScriptWrappableForInterface(SVGTestInterface* object) 25 static void initializeScriptWrappableForInterface(SVGTestInterface* object)
26 { 26 {
27 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 27 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
(...skipping 28 matching lines...) Expand all
56 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 56 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
57 SVGTestInterfaceV8Internal::typeAttributeGetter(info); 57 SVGTestInterfaceV8Internal::typeAttributeGetter(info);
58 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 58 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
59 } 59 }
60 60
61 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 61 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
62 { 62 {
63 v8::Handle<v8::Object> holder = info.Holder(); 63 v8::Handle<v8::Object> holder = info.Holder();
64 SVGTestInterface* impl = V8SVGTestInterface::toNative(holder); 64 SVGTestInterface* impl = V8SVGTestInterface::toNative(holder);
65 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 65 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
66 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 66 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
67 impl->setAttribute(SVGNames::typeAttr, cppValue); 67 impl->setAttribute(SVGNames::typeAttr, cppValue);
68 } 68 }
69 69
70 static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 70 static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
71 { 71 {
72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
73 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 73 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
74 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info); 74 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info);
75 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 75 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
76 } 76 }
77 77
78 } // namespace SVGTestInterfaceV8Internal 78 } // namespace SVGTestInterfaceV8Internal
79 79
80 static const V8DOMConfiguration::AttributeConfiguration V8SVGTestInterfaceAttrib utes[] = { 80 static const V8DOMConfiguration::AttributeConfiguration V8SVGTestInterfaceAttrib utes[] = {
81 {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInt erfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 81 {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInt erfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
82 }; 82 };
83 83
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 return 0; 162 return 0;
163 } 163 }
164 164
165 template<> 165 template<>
166 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 166 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
167 { 167 {
168 return toV8(impl, creationContext, isolate); 168 return toV8(impl, creationContext, isolate);
169 } 169 }
170 170
171 } // namespace blink 171 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698