OLD | NEW |
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 "V8TestInterfacePartial.h" | 7 #include "V8TestInterfacePartial.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/PrivateScriptRunner.h" | 10 #include "bindings/core/v8/PrivateScriptRunner.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 238 } |
239 } | 239 } |
240 TestPartialInterfaceImplementation3::partialVoidTestEnumModulesArgMethod(*im
pl, arg); | 240 TestPartialInterfaceImplementation3::partialVoidTestEnumModulesArgMethod(*im
pl, arg); |
241 } | 241 } |
242 | 242 |
243 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 243 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
244 { | 244 { |
245 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 245 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
246 String errorMessage; | 246 String errorMessage; |
247 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) { | 247 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) { |
248 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); | 248 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
249 if (!errorMessage.isEmpty()) { | 249 if (!errorMessage.isEmpty()) { |
250 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::cre
ate(JSMessageSource, ErrorMessageLevel, errorMessage)); | 250 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea
te(JSMessageSource, ErrorMessageLevel, errorMessage)); |
251 } | 251 } |
252 return; | 252 return; |
253 } | 253 } |
254 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); | 254 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); |
255 } | 255 } |
256 | 256 |
257 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 257 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
258 { | 258 { |
259 V8StringResource<> value; | 259 V8StringResource<> value; |
260 { | 260 { |
261 value = info[0]; | 261 value = info[0]; |
262 if (!value.prepare()) | 262 if (!value.prepare()) |
(...skipping 26 matching lines...) Expand all Loading... |
289 { | 289 { |
290 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 290 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
291 TestPartialInterfaceImplementation3::unscopeableVoidMethod(*impl); | 291 TestPartialInterfaceImplementation3::unscopeableVoidMethod(*impl); |
292 } | 292 } |
293 | 293 |
294 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 294 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
295 { | 295 { |
296 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 296 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
297 String errorMessage; | 297 String errorMessage; |
298 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) { | 298 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) { |
299 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); | 299 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
300 if (!errorMessage.isEmpty()) { | 300 if (!errorMessage.isEmpty()) { |
301 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::cre
ate(JSMessageSource, ErrorMessageLevel, errorMessage)); | 301 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::crea
te(JSMessageSource, ErrorMessageLevel, errorMessage)); |
302 } | 302 } |
303 return; | 303 return; |
304 } | 304 } |
305 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); | 305 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); |
306 } | 306 } |
307 | 307 |
308 } // namespace TestInterfaceImplementationPartialV8Internal | 308 } // namespace TestInterfaceImplementationPartialV8Internal |
309 | 309 |
310 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { | 310 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { |
311 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 311 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8
Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
312 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, | 312 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc
opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype}, |
313 }; | 313 }; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 354 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
355 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 355 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
356 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 356 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
357 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 357 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
358 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 358 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
359 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 359 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
360 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 360 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
361 } | 361 } |
362 | 362 |
363 } // namespace blink | 363 } // namespace blink |
OLD | NEW |