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

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

Issue 2441593002: binding: Returns a reject promise when |this| is not of the type. (Closed)
Patch Set: Updated test expectations. Created 4 years, 1 month 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 // clang-format off 8 // clang-format off
9 #include "V8TestInterface2Partial.h" 9 #include "V8TestInterface2Partial.h"
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 TestInterface2Partial2::voidMethodPartial2(*impl, value); 62 TestInterface2Partial2::voidMethodPartial2(*impl, value);
63 } 63 }
64 64
65 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { 65 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
66 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); 66 TestInterface2PartialV8Internal::voidMethodPartial2Method(info);
67 } 67 }
68 68
69 } // namespace TestInterface2PartialV8Internal 69 } // namespace TestInterface2PartialV8Internal
70 70
71 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { 71 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = {
72 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me thodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf iguration::OnPrototype}, 72 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me thodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf iguration::OnPrototype, V8DOMConfiguration::CheckHolder},
73 }; 73 };
74 74
75 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl ate) { 75 void V8TestInterface2Partial::installV8TestInterface2Template(v8::Isolate* isola te, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTempl ate) {
76 // Initialize the interface object's template. 76 // Initialize the interface object's template.
77 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem plate); 77 V8TestInterface2::installV8TestInterface2Template(isolate, world, interfaceTem plate);
78 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 78 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
79 ALLOW_UNUSED_LOCAL(signature); 79 ALLOW_UNUSED_LOCAL(signature);
80 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 80 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
81 ALLOW_UNUSED_LOCAL(instanceTemplate); 81 ALLOW_UNUSED_LOCAL(instanceTemplate);
82 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 82 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
83 ALLOW_UNUSED_LOCAL(prototypeTemplate); 83 ALLOW_UNUSED_LOCAL(prototypeTemplate);
84 // Register DOM constants, attributes and operations. 84 // Register DOM constants, attributes and operations.
85 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT H(V8TestInterface2Methods)); 85 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGT H(V8TestInterface2Methods));
86 86
87 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) { 87 if (RuntimeEnabledFeatures::interface2PartialFeatureNameEnabled()) {
88 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConf iguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethodPa rtial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype}; 88 const V8DOMConfiguration::MethodConfiguration voidMethodPartial1MethodConf iguration = {"voidMethodPartial1", TestInterface2PartialV8Internal::voidMethodPa rtial1MethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
89 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration ); 89 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, voidMethodPartial1MethodConfiguration );
90 } 90 }
91 } 91 }
92 92
93 void V8TestInterface2Partial::initialize() { 93 void V8TestInterface2Partial::initialize() {
94 // Should be invoked from ModulesInitializer. 94 // Should be invoked from ModulesInitializer.
95 V8TestInterface2::updateWrapperTypeInfo( 95 V8TestInterface2::updateWrapperTypeInfo(
96 &V8TestInterface2Partial::installV8TestInterface2Template, 96 &V8TestInterface2Partial::installV8TestInterface2Template,
97 nullptr); 97 nullptr);
98 } 98 }
99 99
100 } // namespace blink 100 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698