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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp

Issue 1002163002: bindings: Use AccessorName{Getter,Setter}Callback in AttributeConfiguration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 "V8TestInterfaceNamedConstructor.h" 8 #include "V8TestInterfaceNamedConstructor.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 13 matching lines...) Expand all
24 const WrapperTypeInfo V8TestInterfaceNamedConstructor::wrapperTypeInfo = { gin:: kEmbedderBlink, V8TestInterfaceNamedConstructor::domTemplate, V8TestInterfaceNam edConstructor::refObject, V8TestInterfaceNamedConstructor::derefObject, V8TestIn terfaceNamedConstructor::trace, V8TestInterfaceNamedConstructor::toActiveDOMObje ct, 0, V8TestInterfaceNamedConstructor::installConditionallyEnabledMethods, V8Te stInterfaceNamedConstructor::installConditionallyEnabledProperties, 0, WrapperTy peInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeI nfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, WrapperTypeInfo::Ref CountedObject }; 24 const WrapperTypeInfo V8TestInterfaceNamedConstructor::wrapperTypeInfo = { gin:: kEmbedderBlink, V8TestInterfaceNamedConstructor::domTemplate, V8TestInterfaceNam edConstructor::refObject, V8TestInterfaceNamedConstructor::derefObject, V8TestIn terfaceNamedConstructor::trace, V8TestInterfaceNamedConstructor::toActiveDOMObje ct, 0, V8TestInterfaceNamedConstructor::installConditionallyEnabledMethods, V8Te stInterfaceNamedConstructor::installConditionallyEnabledProperties, 0, WrapperTy peInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeI nfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, WrapperTypeInfo::Ref CountedObject };
25 25
26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eNamedConstructor.h. 26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eNamedConstructor.h.
27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
28 // bindings/core/v8/ScriptWrappable.h. 28 // bindings/core/v8/ScriptWrappable.h.
29 const WrapperTypeInfo& TestInterfaceNamedConstructor::s_wrapperTypeInfo = V8Test InterfaceNamedConstructor::wrapperTypeInfo; 29 const WrapperTypeInfo& TestInterfaceNamedConstructor::s_wrapperTypeInfo = V8Test InterfaceNamedConstructor::wrapperTypeInfo;
30 30
31 namespace TestInterfaceNamedConstructorV8Internal { 31 namespace TestInterfaceNamedConstructorV8Internal {
32 32
33 template<class CallbackInfo> 33 template<class CallbackInfo>
34 static void TestInterfaceNamedConstructorForceSetAttributeOnThis(v8::Local<v8::S tring> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info) 34 static void TestInterfaceNamedConstructorForceSetAttributeOnThis(v8::Local<v8::N ame> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info)
35 { 35 {
36 ASSERT(info.This()->IsObject()); 36 ASSERT(info.This()->IsObject());
37 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); 37 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value);
38 } 38 }
39 39
40 static void testNamedConstructorConstructorAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 40 static void testNamedConstructorConstructorAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
41 { 41 {
42 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test NamedConstructorConstructorAttribute"); 42 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test NamedConstructorConstructorAttribute");
43 TestInterfaceNamedConstructorForceSetAttributeOnThis(propertyName, v8Value, info); 43 TestInterfaceNamedConstructorForceSetAttributeOnThis(propertyName, v8Value, info);
44 } 44 }
45 45
46 static void testNamedConstructorConstructorAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 46 static void testNamedConstructorConstructorAttributeAttributeSetterCallback(v8:: Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
47 { 47 {
48 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 48 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
49 TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttr ibuteAttributeSetter(v8Value, info); 49 TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttr ibuteAttributeSetter(v8Value, info);
50 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 50 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
51 } 51 }
52 52
53 } // namespace TestInterfaceNamedConstructorV8Internal 53 } // namespace TestInterfaceNamedConstructorV8Internal
54 54
55 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons tructorAttributes[] = { 55 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons tructorAttributes[] = {
56 {"testNamedConstructorConstructorAttribute", v8ConstructorAttributeGetterAsP roperty, TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructo rAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNam edConstructor::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance}, 56 {"testNamedConstructorConstructorAttribute", v8ConstructorAttributeGetterAsP roperty, TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructo rAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNam edConstructor::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance},
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 { 191 {
192 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); 192 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref();
193 } 193 }
194 194
195 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab le) 195 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab le)
196 { 196 {
197 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); 197 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref();
198 } 198 }
199 199
200 } // namespace blink 200 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698