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

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

Issue 2645813003: [Bindings] Make exported functions visible from other components (Closed)
Patch Set: . Created 3 years, 11 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
10 10
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 V8StringResource<> value; 40 V8StringResource<> value;
41 value = info[0]; 41 value = info[0];
42 if (!value.prepare()) 42 if (!value.prepare())
43 return; 43 return;
44 44
45 TestInterface2Partial::voidMethodPartial1(*impl, value); 45 TestInterface2Partial::voidMethodPartial1(*impl, value);
46 } 46 }
47 47
48 void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { 48 void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) {
49 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); 49 TestInterface2PartialV8Internal::voidMethodPartial1Method(info);
50 } 50 }
51 51
52 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { 52 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
53 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); 53 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
54 54
55 if (UNLIKELY(info.Length() < 1)) { 55 if (UNLIKELY(info.Length() < 1)) {
56 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile dToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEnoughA rguments(1, info.Length()))); 56 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile dToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEnoughA rguments(1, info.Length())));
57 return; 57 return;
58 } 58 }
59 59
60 V8StringResource<> value; 60 V8StringResource<> value;
61 value = info[0]; 61 value = info[0];
62 if (!value.prepare()) 62 if (!value.prepare())
63 return; 63 return;
64 64
65 TestInterface2Partial2::voidMethodPartial2(*impl, value); 65 TestInterface2Partial2::voidMethodPartial2(*impl, value);
66 } 66 }
67 67
68 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { 68 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) {
69 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); 69 TestInterface2PartialV8Internal::voidMethodPartial2Method(info);
70 } 70 }
71 71
72 } // namespace TestInterface2PartialV8Internal 72 } // namespace TestInterface2PartialV8Internal
73 73
74 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { 74 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = {
75 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me thodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::CheckHolder}, 75 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me thodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::CheckHolder},
76 }; 76 };
77 77
78 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl ate) { 78 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl ate) {
(...skipping 17 matching lines...) Expand all
96 } 96 }
97 97
98 void V8TestInterface2Partial::initialize() { 98 void V8TestInterface2Partial::initialize() {
99 // Should be invoked from ModulesInitializer. 99 // Should be invoked from ModulesInitializer.
100 V8TestInterface2::updateWrapperTypeInfo( 100 V8TestInterface2::updateWrapperTypeInfo(
101 &V8TestInterface2Partial::installV8TestInterface2Template, 101 &V8TestInterface2Partial::installV8TestInterface2Template,
102 nullptr); 102 nullptr);
103 } 103 }
104 104
105 } // namespace blink 105 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698