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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 1380503002: binding: Makes Window/Location's attributes accessor-type properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated a test result. Created 4 years, 7 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 "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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698