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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.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 "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/GeneratedCodeHelper.h" 10 #include "bindings/core/v8/GeneratedCodeHelper.h"
11 #include "bindings/core/v8/V8DOMConfiguration.h" 11 #include "bindings/core/v8/V8DOMConfiguration.h"
12 #include "bindings/core/v8/V8GCController.h" 12 #include "bindings/core/v8/V8GCController.h"
13 #include "bindings/core/v8/V8ObjectConstructor.h" 13 #include "bindings/core/v8/V8ObjectConstructor.h"
14 #include "bindings/core/v8/V8TestInterface2.h" 14 #include "bindings/core/v8/V8TestInterface2.h"
15 #include "bindings/tests/idls/modules/TestInterface2Partial.h" 15 #include "bindings/tests/idls/modules/TestInterface2Partial.h"
16 #include "bindings/tests/idls/modules/TestInterface2Partial2.h" 16 #include "bindings/tests/idls/modules/TestInterface2Partial2.h"
17 #include "core/dom/Document.h" 17 #include "core/dom/Document.h"
18 #include "core/dom/Element.h" 18 #include "core/dom/Element.h"
19 #include "platform/RuntimeEnabledFeatures.h" 19 #include "platform/RuntimeEnabledFeatures.h"
20 #include "wtf/GetPtr.h" 20 #include "wtf/GetPtr.h"
21 #include "wtf/RefPtr.h" 21 #include "wtf/RefPtr.h"
22 22
23 namespace blink { 23 namespace blink {
24 24
25 namespace TestInterface2PartialV8Internal { 25 namespace TestInterface2PartialV8Internal {
26 26
27 static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 27 static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
28 { 28 {
29 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
30
29 if (UNLIKELY(info.Length() < 1)) { 31 if (UNLIKELY(info.Length() < 1)) {
30 V8ThrowException::throwException(info.GetIsolate(), V8ThrowException::cr eateTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodP artial1", "TestInterface2", ExceptionMessages::notEnoughArguments(1, info.Length ())))); 32 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodPartial1", "TestInterface2", ExceptionMessages::notEno ughArguments(1, info.Length())));
31 return; 33 return;
32 } 34 }
33 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); 35
34 V8StringResource<> value; 36 V8StringResource<> value;
35 { 37 value = info[0];
36 value = info[0]; 38 if (!value.prepare())
37 if (!value.prepare()) 39 return;
38 return; 40
39 }
40 TestInterface2Partial::voidMethodPartial1(*impl, value); 41 TestInterface2Partial::voidMethodPartial1(*impl, value);
41 } 42 }
42 43
43 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 44 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
44 { 45 {
45 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); 46 TestInterface2PartialV8Internal::voidMethodPartial1Method(info);
46 } 47 }
47 48
48 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 49 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
49 { 50 {
51 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
52
50 if (UNLIKELY(info.Length() < 1)) { 53 if (UNLIKELY(info.Length() < 1)) {
51 V8ThrowException::throwException(info.GetIsolate(), V8ThrowException::cr eateTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodP artial2", "TestInterface2", ExceptionMessages::notEnoughArguments(1, info.Length ())))); 54 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEno ughArguments(1, info.Length())));
52 return; 55 return;
53 } 56 }
54 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); 57
55 V8StringResource<> value; 58 V8StringResource<> value;
56 { 59 value = info[0];
57 value = info[0]; 60 if (!value.prepare())
58 if (!value.prepare()) 61 return;
59 return; 62
60 }
61 TestInterface2Partial2::voidMethodPartial2(*impl, value); 63 TestInterface2Partial2::voidMethodPartial2(*impl, value);
62 } 64 }
63 65
64 static void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 66 static void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
65 { 67 {
66 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); 68 TestInterface2PartialV8Internal::voidMethodPartial2Method(info);
67 } 69 }
68 70
69 } // namespace TestInterface2PartialV8Internal 71 } // namespace TestInterface2PartialV8Internal
70 72
(...skipping 22 matching lines...) Expand all
93 95
94 void V8TestInterface2Partial::initialize() 96 void V8TestInterface2Partial::initialize()
95 { 97 {
96 // Should be invoked from ModulesInitializer. 98 // Should be invoked from ModulesInitializer.
97 V8TestInterface2::updateWrapperTypeInfo( 99 V8TestInterface2::updateWrapperTypeInfo(
98 &V8TestInterface2Partial::installV8TestInterface2Template, 100 &V8TestInterface2Partial::installV8TestInterface2Template,
99 nullptr); 101 nullptr);
100 } 102 }
101 103
102 } // namespace blink 104 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698