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

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

Issue 1085453003: IDL: Add support for [Unscopeable] on attributes and methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixes Created 5 years, 8 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 "V8TestInterfaceNamedConstructor.h" 8 #include "V8TestInterfaceNamedConstructor.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/V8ObjectConstructor.h" 12 #include "bindings/core/v8/V8ObjectConstructor.h"
13 #include "core/dom/ContextFeatures.h" 13 #include "core/dom/ContextFeatures.h"
14 #include "core/dom/Document.h" 14 #include "core/dom/Document.h"
15 #include "core/frame/LocalDOMWindow.h" 15 #include "core/frame/LocalDOMWindow.h"
16 #include "platform/RuntimeEnabledFeatures.h" 16 #include "platform/RuntimeEnabledFeatures.h"
17 #include "platform/TraceEvent.h" 17 #include "platform/TraceEvent.h"
18 #include "wtf/GetPtr.h" 18 #include "wtf/GetPtr.h"
19 #include "wtf/RefPtr.h" 19 #include "wtf/RefPtr.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 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, "TestInterfa ceNamedConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperType Info::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo ::Dependent, WrapperTypeInfo::RefCountedObject }; 23 const WrapperTypeInfo V8TestInterfaceNamedConstructor::wrapperTypeInfo = { gin:: kEmbedderBlink, V8TestInterfaceNamedConstructor::domTemplate, V8TestInterfaceNam edConstructor::refObject, V8TestInterfaceNamedConstructor::derefObject, V8TestIn terfaceNamedConstructor::trace, V8TestInterfaceNamedConstructor::toActiveDOMObje ct, 0, V8TestInterfaceNamedConstructor::preparePrototypeObject, V8TestInterfaceN amedConstructor::installConditionallyEnabledProperties, "TestInterfaceNamedConst ructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Object ClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject };
24 24
25 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eNamedConstructor.h. 25 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eNamedConstructor.h.
26 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 26 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
27 // bindings/core/v8/ScriptWrappable.h. 27 // bindings/core/v8/ScriptWrappable.h.
28 const WrapperTypeInfo& TestInterfaceNamedConstructor::s_wrapperTypeInfo = V8Test InterfaceNamedConstructor::wrapperTypeInfo; 28 const WrapperTypeInfo& TestInterfaceNamedConstructor::s_wrapperTypeInfo = V8Test InterfaceNamedConstructor::wrapperTypeInfo;
29 29
30 namespace TestInterfaceNamedConstructorV8Internal { 30 namespace TestInterfaceNamedConstructorV8Internal {
31 31
32 template<class CallbackInfo> 32 template<class CallbackInfo>
33 static void TestInterfaceNamedConstructorForceSetAttributeOnThis(v8::Local<v8::N ame> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info) 33 static void TestInterfaceNamedConstructorForceSetAttributeOnThis(v8::Local<v8::N ame> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttr ibuteAttributeSetter(v8Value, info); 65 TestInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttr ibuteAttributeSetter(v8Value, info);
66 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 66 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
67 } 67 }
68 68
69 } // namespace TestInterfaceNamedConstructorV8Internal 69 } // namespace TestInterfaceNamedConstructorV8Internal
70 70
71 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons tructorAttributes[] = { 71 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons tructorAttributes[] = {
72 {"testNamedConstructorConstructorAttribute", v8ConstructorAttributeGetter, T estInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttribute AttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstruc tor::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance}, 72 {"testNamedConstructorConstructorAttribute", v8ConstructorAttributeGetter, T estInterfaceNamedConstructorV8Internal::testNamedConstructorConstructorAttribute AttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstruc tor::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
73 }; 73 };
74 74
75 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla te, V8TestInterfaceNamedConstructor::refObject, V8TestInterfaceNamedConstructor: :derefObject, V8TestInterfaceNamedConstructor::trace, V8TestInterfaceNamedConstr uctor::toActiveDOMObject, 0, V8TestInterfaceNamedConstructor::installConditional lyEnabledMethods, V8TestInterfaceNamedConstructor::installConditionallyEnabledPr operties, "TestInterfaceNamedConstructor", 0, WrapperTypeInfo::WrapperTypeObject Prototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventT arget, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; 75 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla te, V8TestInterfaceNamedConstructor::refObject, V8TestInterfaceNamedConstructor: :derefObject, V8TestInterfaceNamedConstructor::trace, V8TestInterfaceNamedConstr uctor::toActiveDOMObject, 0, V8TestInterfaceNamedConstructor::preparePrototypeOb ject, V8TestInterfaceNamedConstructor::installConditionallyEnabledProperties, "T estInterfaceNamedConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, W rapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, Wrapp erTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject };
76 76
77 static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 77 static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
78 { 78 {
79 if (!info.IsConstructCall()) { 79 if (!info.IsConstructCall()) {
80 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("Audio")); 80 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("Audio"));
81 return; 81 return;
82 } 82 }
83 83
84 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 84 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
85 v8SetReturnValue(info, info.Holder()); 85 v8SetReturnValue(info, info.Holder());
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 { 209 {
210 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); 210 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref();
211 } 211 }
212 212
213 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab le) 213 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab le)
214 { 214 {
215 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); 215 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref();
216 } 216 }
217 217
218 } // namespace blink 218 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698