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

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

Issue 698023005: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 "V8TestInterfaceConstructor2.h" 8 #include "V8TestInterfaceConstructor2.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 22 matching lines...) Expand all
33 namespace TestInterfaceConstructor2V8Internal { 33 namespace TestInterfaceConstructor2V8Internal {
34 34
35 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) 35 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
36 { 36 {
37 V8StringResource<> stringArg; 37 V8StringResource<> stringArg;
38 { 38 {
39 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 39 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
40 } 40 }
41 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(s tringArg); 41 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(s tringArg);
42 v8::Handle<v8::Object> wrapper = info.Holder(); 42 v8::Handle<v8::Object> wrapper = info.Holder();
43 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperTypeInfo, wr apper, info.GetIsolate()); 43 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor2:: wrapperTypeInfo, wrapper);
44 v8SetReturnValue(info, wrapper); 44 v8SetReturnValue(info, wrapper);
45 } 45 }
46 46
47 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) 47 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
48 { 48 {
49 Dictionary dictionaryArg; 49 Dictionary dictionaryArg;
50 { 50 {
51 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 51 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
52 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToConstruct("TestInterfaceConstructor2", "parameter 1 ('dictionaryArg') is not an object.")); 52 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToConstruct("TestInterfaceConstructor2", "parameter 1 ('dictionaryArg') is not an object."));
53 return; 53 return;
54 } 54 }
55 dictionaryArg = Dictionary(info[0], info.GetIsolate()); 55 dictionaryArg = Dictionary(info[0], info.GetIsolate());
56 } 56 }
57 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(d ictionaryArg); 57 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(d ictionaryArg);
58 v8::Handle<v8::Object> wrapper = info.Holder(); 58 v8::Handle<v8::Object> wrapper = info.Holder();
59 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperTypeInfo, wr apper, info.GetIsolate()); 59 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor2:: wrapperTypeInfo, wrapper);
60 v8SetReturnValue(info, wrapper); 60 v8SetReturnValue(info, wrapper);
61 } 61 }
62 62
63 static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info) 63 static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info)
64 { 64 {
65 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate()); 65 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate());
66 Vector<Vector<String> > stringSequenceSequenceArg; 66 Vector<Vector<String> > stringSequenceSequenceArg;
67 { 67 {
68 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplA rray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionSt ate); 68 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplA rray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionSt ate);
69 } 69 }
70 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(s tringSequenceSequenceArg); 70 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(s tringSequenceSequenceArg);
71 v8::Handle<v8::Object> wrapper = info.Holder(); 71 v8::Handle<v8::Object> wrapper = info.Holder();
72 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperTypeInfo, wr apper, info.GetIsolate()); 72 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor2:: wrapperTypeInfo, wrapper);
73 v8SetReturnValue(info, wrapper); 73 v8SetReturnValue(info, wrapper);
74 } 74 }
75 75
76 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info) 76 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info)
77 { 77 {
78 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate()); 78 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate());
79 TestInterfaceEmpty* testInterfaceEmptyArg; 79 TestInterfaceEmpty* testInterfaceEmptyArg;
80 int longArg; 80 int longArg;
81 V8StringResource<> defaultUndefinedOptionalStringArg; 81 V8StringResource<> defaultUndefinedOptionalStringArg;
82 V8StringResource<> defaultNullStringOptionalStringArg; 82 V8StringResource<> defaultNullStringOptionalStringArg;
(...skipping 10 matching lines...) Expand all
93 } 93 }
94 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) { 94 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) {
95 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona lDictionaryArg') is not an object."); 95 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona lDictionaryArg') is not an object.");
96 exceptionState.throwIfNeeded(); 96 exceptionState.throwIfNeeded();
97 return; 97 return;
98 } 98 }
99 defaultUndefinedOptionalDictionaryArg = Dictionary(info[4], info.GetIsol ate()); 99 defaultUndefinedOptionalDictionaryArg = Dictionary(info[4], info.GetIsol ate());
100 if (UNLIKELY(info.Length() <= 5)) { 100 if (UNLIKELY(info.Length() <= 5)) {
101 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2:: create(testInterfaceEmptyArg, longArg, defaultUndefinedOptionalStringArg, defaul tNullStringOptionalStringArg, defaultUndefinedOptionalDictionaryArg); 101 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2:: create(testInterfaceEmptyArg, longArg, defaultUndefinedOptionalStringArg, defaul tNullStringOptionalStringArg, defaultUndefinedOptionalDictionaryArg);
102 v8::Handle<v8::Object> wrapper = info.Holder(); 102 v8::Handle<v8::Object> wrapper = info.Holder();
103 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperType Info, wrapper, info.GetIsolate()); 103 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstr uctor2::wrapperTypeInfo, wrapper);
104 v8SetReturnValue(info, wrapper); 104 v8SetReturnValue(info, wrapper);
105 return; 105 return;
106 } 106 }
107 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); 107 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]);
108 } 108 }
109 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(t estInterfaceEmptyArg, longArg, defaultUndefinedOptionalStringArg, defaultNullStr ingOptionalStringArg, defaultUndefinedOptionalDictionaryArg, optionalStringArg); 109 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::create(t estInterfaceEmptyArg, longArg, defaultUndefinedOptionalStringArg, defaultNullStr ingOptionalStringArg, defaultUndefinedOptionalDictionaryArg, optionalStringArg);
110 v8::Handle<v8::Object> wrapper = info.Holder(); 110 v8::Handle<v8::Object> wrapper = info.Holder();
111 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperTypeInfo, wr apper, info.GetIsolate()); 111 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor2:: wrapperTypeInfo, wrapper);
112 v8SetReturnValue(info, wrapper); 112 v8SetReturnValue(info, wrapper);
113 } 113 }
114 114
115 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 115 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
116 { 116 {
117 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate()); 117 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate());
118 switch (std::min(6, info.Length())) { 118 switch (std::min(6, info.Length())) {
119 case 1: 119 case 1:
120 if (info[0]->IsArray()) { 120 if (info[0]->IsArray()) {
121 TestInterfaceConstructor2V8Internal::constructor3(info); 121 TestInterfaceConstructor2V8Internal::constructor3(info);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 scriptWrappable->toImpl<TestInterfaceConstructor2>()->deref(); 238 scriptWrappable->toImpl<TestInterfaceConstructor2>()->deref();
239 } 239 }
240 240
241 template<> 241 template<>
242 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 242 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
243 { 243 {
244 return toV8(impl, creationContext, isolate); 244 return toV8(impl, creationContext, isolate);
245 } 245 }
246 246
247 } // namespace blink 247 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698