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

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

Issue 340763003: Change [ConstructorCallWith={Document => ExecutionContext}] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 namespace TestInterfaceConstructorV8Internal { 45 namespace TestInterfaceConstructorV8Internal {
46 46
47 template <typename T> void V8_USE(T) { } 47 template <typename T> void V8_USE(T) { }
48 48
49 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) 49 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
50 { 50 {
51 v8::Isolate* isolate = info.GetIsolate(); 51 v8::Isolate* isolate = info.GetIsolate();
52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), isolate); 52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), isolate);
53 ExecutionContext* executionContext = currentExecutionContext(isolate); 53 ExecutionContext* executionContext = currentExecutionContext(isolate);
54 Document& document = *toDocument(currentExecutionContext(isolate)); 54 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe cutionContext, exceptionState);
55 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe cutionContext, document, exceptionState);
56 if (exceptionState.throwIfNeeded()) 55 if (exceptionState.throwIfNeeded())
57 return; 56 return;
58 57
59 v8::Handle<v8::Object> wrapper = info.Holder(); 58 v8::Handle<v8::Object> wrapper = info.Holder();
60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper Configuration::Independent); 59 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper Configuration::Independent);
61 v8SetReturnValue(info, wrapper); 60 v8SetReturnValue(info, wrapper);
62 } 61 }
63 62
64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) 63 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
65 { 64 {
(...skipping 23 matching lines...) Expand all
89 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toNativeArray<Dictionary>( info[5], 6, info.GetIsolate())); 88 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toNativeArray<Dictionary>( info[5], 6, info.GetIsolate()));
90 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G etIsolate())); 89 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G etIsolate()));
91 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg .isObject()) { 90 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg .isObject()) {
92 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg') is not an object."); 91 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg') is not an object.");
93 exceptionState.throwIfNeeded(); 92 exceptionState.throwIfNeeded();
94 return; 93 return;
95 } 94 }
96 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[7])); 95 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[7]));
97 } 96 }
98 ExecutionContext* executionContext = currentExecutionContext(isolate); 97 ExecutionContext* executionContext = currentExecutionContext(isolate);
99 Document& document = *toDocument(currentExecutionContext(isolate)); 98 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe cutionContext, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg, seque nceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTestInterfac eEmptyArg, exceptionState);
100 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe cutionContext, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionary Arg, sequenceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTe stInterfaceEmptyArg, exceptionState);
101 if (exceptionState.throwIfNeeded()) 99 if (exceptionState.throwIfNeeded())
102 return; 100 return;
103 101
104 v8::Handle<v8::Object> wrapper = info.Holder(); 102 v8::Handle<v8::Object> wrapper = info.Holder();
105 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper Configuration::Independent); 103 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper Configuration::Independent);
106 v8SetReturnValue(info, wrapper); 104 v8SetReturnValue(info, wrapper);
107 } 105 }
108 106
109 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 107 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
110 { 108 {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 fromInternalPointer(object)->deref(); 236 fromInternalPointer(object)->deref();
239 } 237 }
240 238
241 template<> 239 template<>
242 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 240 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
243 { 241 {
244 return toV8(impl, creationContext, isolate); 242 return toV8(impl, creationContext, isolate);
245 } 243 }
246 244
247 } // namespace WebCore 245 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698