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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedPrimaryGlobal.cpp

Issue 2301993002: binding: Introduces ExceptionToPromiseScope. (Closed)
Patch Set: Addressed review comments (rename, empty line). Created 4 years, 3 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 "V8TestIntegerIndexedPrimaryGlobal.h" 7 #include "V8TestIntegerIndexedPrimaryGlobal.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/GeneratedCodeHelper.h" 10 #include "bindings/core/v8/GeneratedCodeHelper.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 75 void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
76 { 76 {
77 v8::Local<v8::Value> v8Value = info[0]; 77 v8::Local<v8::Value> v8Value = info[0];
78 TestIntegerIndexedPrimaryGlobalV8Internal::lengthAttributeSetter(v8Value, in fo); 78 TestIntegerIndexedPrimaryGlobalV8Internal::lengthAttributeSetter(v8Value, in fo);
79 } 79 }
80 80
81 static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 81 static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
82 { 82 {
83 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::t oImpl(info.Holder());
84
83 if (UNLIKELY(info.Length() < 1)) { 85 if (UNLIKELY(info.Length() < 1)) {
84 V8ThrowException::throwException(info.GetIsolate(), V8ThrowException::cr eateTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodD ocument", "TestIntegerIndexedPrimaryGlobal", ExceptionMessages::notEnoughArgumen ts(1, info.Length())))); 86 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocument", "TestIntegerIndexedPrimaryGlobal", Exceptio nMessages::notEnoughArguments(1, info.Length())));
85 return; 87 return;
86 } 88 }
87 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::t oImpl(info.Holder()); 89
88 Document* document; 90 Document* document;
89 { 91 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
90 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 92 if (!document) {
91 if (!document) { 93 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocument", "TestIntegerIndexedPrimaryGlobal", "paramet er 1 is not of type 'Document'."));
92 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodDocument", "TestIntegerIndexedPrimaryGlobal", "par ameter 1 is not of type 'Document'.")); 94
93 return; 95 return;
94 }
95 } 96 }
97
96 impl->voidMethodDocument(document); 98 impl->voidMethodDocument(document);
97 } 99 }
98 100
99 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 101 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
100 { 102 {
101 TestIntegerIndexedPrimaryGlobalV8Internal::voidMethodDocumentMethod(info); 103 TestIntegerIndexedPrimaryGlobalV8Internal::voidMethodDocumentMethod(info);
102 } 104 }
103 105
104 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal lbackInfo<v8::Value>& info) 106 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal lbackInfo<v8::Value>& info)
105 { 107 {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 { 219 {
218 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 220 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
219 } 221 }
220 222
221 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) 223 TestIntegerIndexedPrimaryGlobal* V8TestIntegerIndexedPrimaryGlobal::toImplWithTy peCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
222 { 224 {
223 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr; 225 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr;
224 } 226 }
225 227
226 } // namespace blink 228 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698