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

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: TBR added 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* impl) 25 static void initializeScriptWrappableForInterface(SVGTestInterface* impl)
26 { 26 {
27 impl->setTypeInfo(&V8SVGTestInterface::wrapperTypeInfo); 27 impl->setTypeInfo(&V8SVGTestInterface::wrapperTypeInfo);
(...skipping 26 matching lines...) Expand all
54 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 54 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
55 SVGTestInterfaceV8Internal::typeAttributeGetter(info); 55 SVGTestInterfaceV8Internal::typeAttributeGetter(info);
56 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 56 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
57 } 57 }
58 58
59 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 59 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
60 { 60 {
61 v8::Handle<v8::Object> holder = info.Holder(); 61 v8::Handle<v8::Object> holder = info.Holder();
62 SVGTestInterface* impl = V8SVGTestInterface::toNative(holder); 62 SVGTestInterface* impl = V8SVGTestInterface::toNative(holder);
63 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 63 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
64 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 64 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
65 impl->setAttribute(SVGNames::typeAttr, cppValue); 65 impl->setAttribute(SVGNames::typeAttr, cppValue);
66 } 66 }
67 67
68 static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 68 static void typeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
69 { 69 {
70 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 70 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
71 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 71 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
72 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info); 72 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info);
73 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 73 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
74 } 74 }
75 75
76 } // namespace SVGTestInterfaceV8Internal 76 } // namespace SVGTestInterfaceV8Internal
77 77
78 static const V8DOMConfiguration::AttributeConfiguration V8SVGTestInterfaceAttrib utes[] = { 78 static const V8DOMConfiguration::AttributeConfiguration V8SVGTestInterfaceAttrib utes[] = {
79 {"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}, 79 {"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},
80 }; 80 };
81 81
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 return 0; 158 return 0;
159 } 159 }
160 160
161 template<> 161 template<>
162 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 162 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
163 { 163 {
164 return toV8(impl, creationContext, isolate); 164 return toV8(impl, creationContext, isolate);
165 } 165 }
166 166
167 } // namespace blink 167 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698