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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceConstructor.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 "V8TestInterfaceConstructor.h" 8 #include "V8TestInterfaceConstructor.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
11 #include "bindings/core/v8/ExceptionState.h" 11 #include "bindings/core/v8/ExceptionState.h"
12 #include "bindings/core/v8/UnionTypesCore.h" 12 #include "bindings/core/v8/UnionTypesCore.h"
13 #include "bindings/core/v8/V8DOMConfiguration.h" 13 #include "bindings/core/v8/V8DOMConfiguration.h"
14 #include "bindings/core/v8/V8ObjectConstructor.h" 14 #include "bindings/core/v8/V8ObjectConstructor.h"
15 #include "bindings/core/v8/V8TestDictionary.h" 15 #include "bindings/core/v8/V8TestDictionary.h"
16 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 16 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
17 #include "core/dom/ContextFeatures.h" 17 #include "core/dom/ContextFeatures.h"
18 #include "core/dom/Document.h" 18 #include "core/dom/Document.h"
19 #include "core/frame/LocalDOMWindow.h" 19 #include "core/frame/LocalDOMWindow.h"
20 #include "core/frame/UseCounter.h" 20 #include "core/frame/UseCounter.h"
21 #include "platform/RuntimeEnabledFeatures.h" 21 #include "platform/RuntimeEnabledFeatures.h"
22 #include "platform/TraceEvent.h" 22 #include "platform/TraceEvent.h"
23 #include "wtf/GetPtr.h" 23 #include "wtf/GetPtr.h"
24 #include "wtf/RefPtr.h" 24 #include "wtf/RefPtr.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor:: refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor:: trace, 0, 0, V8TestInterfaceConstructor::installConditionallyEnabledMethods, V8T estInterfaceConstructor::installConditionallyEnabledProperties, "TestInterfaceCo nstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Obj ectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Indepen dent, WrapperTypeInfo::RefCountedObject }; 28 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor:: refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor:: trace, 0, 0, V8TestInterfaceConstructor::preparePrototypeObject, V8TestInterface Constructor::installConditionallyEnabledProperties, "TestInterfaceConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, Wrappe rTypeInfo::RefCountedObject };
29 29
30 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eConstructor.h. 30 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eConstructor.h.
31 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 31 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
32 // bindings/core/v8/ScriptWrappable.h. 32 // bindings/core/v8/ScriptWrappable.h.
33 const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter faceConstructor::wrapperTypeInfo; 33 const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter faceConstructor::wrapperTypeInfo;
34 34
35 namespace TestInterfaceConstructorV8Internal { 35 namespace TestInterfaceConstructorV8Internal {
36 36
37 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) 37 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
38 { 38 {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 234 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
235 exceptionState.throwIfNeeded(); 235 exceptionState.throwIfNeeded();
236 return; 236 return;
237 } 237 }
238 exceptionState.throwTypeError("No matching constructor signature."); 238 exceptionState.throwTypeError("No matching constructor signature.");
239 exceptionState.throwIfNeeded(); 239 exceptionState.throwIfNeeded();
240 } 240 }
241 241
242 } // namespace TestInterfaceConstructorV8Internal 242 } // namespace TestInterfaceConstructorV8Internal
243 243
244 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test InterfaceConstructor::trace, 0, 0, V8TestInterfaceConstructor::installConditiona llyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledProper ties, "TestInterfaceConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype , WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, Wr apperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; 244 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test InterfaceConstructor::trace, 0, 0, V8TestInterfaceConstructor::preparePrototypeO bject, V8TestInterfaceConstructor::installConditionallyEnabledProperties, "TestI nterfaceConstructor", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTyp eInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInf o::Independent, WrapperTypeInfo::RefCountedObject };
245 245
246 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) 246 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall backInfo<v8::Value>& info)
247 { 247 {
248 if (!info.IsConstructCall()) { 248 if (!info.IsConstructCall()) {
249 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("Audio")); 249 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("Audio"));
250 return; 250 return;
251 } 251 }
252 252
253 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 253 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
254 v8SetReturnValue(info, info.Holder()); 254 v8SetReturnValue(info, info.Holder());
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 { 376 {
377 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); 377 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref();
378 } 378 }
379 379
380 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) 380 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable)
381 { 381 {
382 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); 382 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref();
383 } 383 }
384 384
385 } // namespace blink 385 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698