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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 2209203002: binding: Always throws an exception in the current realm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "V8TestInterface5.h" 7 #include "V8TestInterface5.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 static void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 297 static void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
298 { 298 {
299 v8::Local<v8::Value> v8Value = info[0]; 299 v8::Local<v8::Value> v8Value = info[0];
300 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette r(v8Value, info); 300 TestInterface5ImplementationV8Internal::windowExposedAttributeAttributeSette r(v8Value, info);
301 } 301 }
302 302
303 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 303 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
304 { 304 {
305 if (UNLIKELY(info.Length() < 1)) { 305 if (UNLIKELY(info.Length() < 1)) {
306 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface5", 1, info.Le ngth()), info.GetIsolate()); 306 V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTy peErrorForMethod(info.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInte rface5", 1, info.Length()));
307 return; 307 return;
308 } 308 }
309 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 309 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
310 TestInterfaceEmpty* testInterfaceEmptyArg; 310 TestInterfaceEmpty* testInterfaceEmptyArg;
311 { 311 {
312 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 312 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]);
313 if (!testInterfaceEmptyArg) { 313 if (!testInterfaceEmptyArg) {
314 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface5", "paramet er 1 is not of type 'TestInterfaceEmpty'.")); 314 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface5", "paramet er 1 is not of type 'TestInterfaceEmpty'."));
315 return; 315 return;
316 } 316 }
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration); 922 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
923 } 923 }
924 } 924 }
925 925
926 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O bject> wrapper) 926 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O bject> wrapper)
927 { 927 {
928 return toImpl(wrapper); 928 return toImpl(wrapper);
929 } 929 }
930 930
931 } // namespace blink 931 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698