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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.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
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 "V8TestInterface2Partial.h" 7 #include "V8TestInterface2Partial.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/V8DOMConfiguration.h" 10 #include "bindings/core/v8/V8DOMConfiguration.h"
11 #include "bindings/core/v8/V8GCController.h" 11 #include "bindings/core/v8/V8GCController.h"
12 #include "bindings/core/v8/V8ObjectConstructor.h" 12 #include "bindings/core/v8/V8ObjectConstructor.h"
13 #include "bindings/core/v8/V8TestInterface2.h" 13 #include "bindings/core/v8/V8TestInterface2.h"
14 #include "bindings/tests/idls/modules/TestInterface2Partial.h" 14 #include "bindings/tests/idls/modules/TestInterface2Partial.h"
15 #include "bindings/tests/idls/modules/TestInterface2Partial2.h" 15 #include "bindings/tests/idls/modules/TestInterface2Partial2.h"
16 #include "core/dom/Document.h" 16 #include "core/dom/Document.h"
17 #include "core/dom/Element.h" 17 #include "core/dom/Element.h"
18 #include "platform/RuntimeEnabledFeatures.h" 18 #include "platform/RuntimeEnabledFeatures.h"
19 #include "wtf/GetPtr.h" 19 #include "wtf/GetPtr.h"
20 #include "wtf/RefPtr.h" 20 #include "wtf/RefPtr.h"
21 21
22 namespace blink { 22 namespace blink {
23 23
24 namespace TestInterface2PartialV8Internal { 24 namespace TestInterface2PartialV8Internal {
25 25
26 static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 26 static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
27 { 27 {
28 if (UNLIKELY(info.Length() < 1)) { 28 if (UNLIKELY(info.Length() < 1)) {
29 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodPartial1", "TestInterface2", 1, info.Length()), info .GetIsolate()); 29 V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTy peErrorForMethod(info.GetIsolate(), "voidMethodPartial1", "TestInterface2", 1, i nfo.Length()));
30 return; 30 return;
31 } 31 }
32 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); 32 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
33 V8StringResource<> value; 33 V8StringResource<> value;
34 { 34 {
35 value = info[0]; 35 value = info[0];
36 if (!value.prepare()) 36 if (!value.prepare())
37 return; 37 return;
38 } 38 }
39 TestInterface2Partial::voidMethodPartial1(*impl, value); 39 TestInterface2Partial::voidMethodPartial1(*impl, value);
40 } 40 }
41 41
42 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 42 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
43 { 43 {
44 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); 44 TestInterface2PartialV8Internal::voidMethodPartial1Method(info);
45 } 45 }
46 46
47 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 47 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
48 { 48 {
49 if (UNLIKELY(info.Length() < 1)) { 49 if (UNLIKELY(info.Length() < 1)) {
50 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodPartial2", "TestInterface2", 1, info.Length()), info .GetIsolate()); 50 V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTy peErrorForMethod(info.GetIsolate(), "voidMethodPartial2", "TestInterface2", 1, i nfo.Length()));
51 return; 51 return;
52 } 52 }
53 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); 53 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
54 V8StringResource<> value; 54 V8StringResource<> value;
55 { 55 {
56 value = info[0]; 56 value = info[0];
57 if (!value.prepare()) 57 if (!value.prepare())
58 return; 58 return;
59 } 59 }
60 TestInterface2Partial2::voidMethodPartial2(*impl, value); 60 TestInterface2Partial2::voidMethodPartial2(*impl, value);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 void V8TestInterface2Partial::initialize() 98 void V8TestInterface2Partial::initialize()
99 { 99 {
100 // Should be invoked from ModulesInitializer. 100 // Should be invoked from ModulesInitializer.
101 V8TestInterface2::updateWrapperTypeInfo( 101 V8TestInterface2::updateWrapperTypeInfo(
102 &V8TestInterface2Partial::installV8TestInterface2Template, 102 &V8TestInterface2Partial::installV8TestInterface2Template,
103 &V8TestInterface2Partial::preparePrototypeAndInterfaceObject); 103 &V8TestInterface2Partial::preparePrototypeAndInterfaceObject);
104 } 104 }
105 105
106 } // namespace blink 106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698