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 "V8TestInterface.h" | 7 #include "V8TestInterface.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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 } | 522 } |
523 | 523 |
524 static void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 524 static void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
525 { | 525 { |
526 v8::Local<v8::Value> v8Value = info[0]; | 526 v8::Local<v8::Value> v8Value = info[0]; |
527 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter
(v8Value, info); | 527 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter
(v8Value, info); |
528 } | 528 } |
529 | 529 |
530 static void lenientThisAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) | 530 static void lenientThisAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
531 { | 531 { |
532 if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate())) | 532 v8::Local<v8::Object> holder = V8TestInterface::findInstanceInPrototypeChain
(info.This(), info.GetIsolate()); |
| 533 if (holder.IsEmpty()) |
533 return; // Return silently because of [LenientThis]. | 534 return; // Return silently because of [LenientThis]. |
534 v8::Local<v8::Object> holder = info.Holder(); | |
535 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 535 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
536 v8SetReturnValue(info, impl->lenientThisAttribute().v8Value()); | 536 v8SetReturnValue(info, impl->lenientThisAttribute().v8Value()); |
537 } | 537 } |
538 | 538 |
539 static void lenientThisAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 539 static void lenientThisAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
540 { | 540 { |
541 TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeGetter(i
nfo); | 541 TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeGetter(i
nfo); |
542 } | 542 } |
543 | 543 |
544 static void lenientThisAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 544 static void lenientThisAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
545 { | 545 { |
546 if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate())) | 546 v8::Local<v8::Object> holder = V8TestInterface::findInstanceInPrototypeChain
(info.This(), info.GetIsolate()); |
| 547 if (holder.IsEmpty()) |
547 return; // Return silently because of [LenientThis]. | 548 return; // Return silently because of [LenientThis]. |
548 v8::Local<v8::Object> holder = info.Holder(); | |
549 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 549 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
550 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 550 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
551 impl->setLenientThisAttribute(cppValue); | 551 impl->setLenientThisAttribute(cppValue); |
552 } | 552 } |
553 | 553 |
554 static void lenientThisAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 554 static void lenientThisAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
555 { | 555 { |
556 v8::Local<v8::Value> v8Value = info[0]; | 556 v8::Local<v8::Value> v8Value = info[0]; |
557 TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeSetter(v
8Value, info); | 557 TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeSetter(v
8Value, info); |
558 } | 558 } |
(...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2361 { | 2361 { |
2362 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2362 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2363 } | 2363 } |
2364 | 2364 |
2365 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2365 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2366 { | 2366 { |
2367 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2367 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2368 } | 2368 } |
2369 | 2369 |
2370 } // namespace blink | 2370 } // namespace blink |
OLD | NEW |