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

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

Issue 2199643003: binding: Uses the current context if attribute/method is static. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "V8TestInterface5.h" 7 #include "V8TestInterface5.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 517 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
518 { 518 {
519 TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod (info); 519 TestInterface5ImplementationV8Internal::voidMethodDoubleOrDOMStringArgMethod (info);
520 } 520 }
521 521
522 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 522 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
523 { 523 {
524 ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes tInterface5", info.Holder(), info.GetIsolate()); 524 ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes tInterface5", info.Holder(), info.GetIsolate());
525 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 525 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
526 ScriptState* scriptState = ScriptState::forHolderObject(info); 526 ScriptState* scriptState = ScriptState::forReceiverObject(info);
527 Iterator* result = impl->keysForBinding(scriptState, exceptionState); 527 Iterator* result = impl->keysForBinding(scriptState, exceptionState);
528 if (exceptionState.hadException()) { 528 if (exceptionState.hadException()) {
529 exceptionState.throwIfNeeded(); 529 exceptionState.throwIfNeeded();
530 return; 530 return;
531 } 531 }
532 v8SetReturnValue(info, result); 532 v8SetReturnValue(info, result);
533 } 533 }
534 534
535 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 535 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
536 { 536 {
537 TestInterface5ImplementationV8Internal::keysMethod(info); 537 TestInterface5ImplementationV8Internal::keysMethod(info);
538 } 538 }
539 539
540 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 540 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
541 { 541 {
542 ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T estInterface5", info.Holder(), info.GetIsolate()); 542 ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "T estInterface5", info.Holder(), info.GetIsolate());
543 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 543 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
544 ScriptState* scriptState = ScriptState::forHolderObject(info); 544 ScriptState* scriptState = ScriptState::forReceiverObject(info);
545 Iterator* result = impl->valuesForBinding(scriptState, exceptionState); 545 Iterator* result = impl->valuesForBinding(scriptState, exceptionState);
546 if (exceptionState.hadException()) { 546 if (exceptionState.hadException()) {
547 exceptionState.throwIfNeeded(); 547 exceptionState.throwIfNeeded();
548 return; 548 return;
549 } 549 }
550 v8SetReturnValue(info, result); 550 v8SetReturnValue(info, result);
551 } 551 }
552 552
553 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) 553 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info )
554 { 554 {
555 TestInterface5ImplementationV8Internal::valuesMethod(info); 555 TestInterface5ImplementationV8Internal::valuesMethod(info);
556 } 556 }
557 557
558 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 558 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
559 { 559 {
560 ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", " TestInterface5", info.Holder(), info.GetIsolate()); 560 ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", " TestInterface5", info.Holder(), info.GetIsolate());
561 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 561 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
562 ScriptState* scriptState = ScriptState::forHolderObject(info); 562 ScriptState* scriptState = ScriptState::forReceiverObject(info);
563 Iterator* result = impl->entriesForBinding(scriptState, exceptionState); 563 Iterator* result = impl->entriesForBinding(scriptState, exceptionState);
564 if (exceptionState.hadException()) { 564 if (exceptionState.hadException()) {
565 exceptionState.throwIfNeeded(); 565 exceptionState.throwIfNeeded();
566 return; 566 return;
567 } 567 }
568 v8SetReturnValue(info, result); 568 v8SetReturnValue(info, result);
569 } 569 }
570 570
571 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) 571 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o)
572 { 572 {
(...skipping 13 matching lines...) Expand all
586 ScriptValue thisArg; 586 ScriptValue thisArg;
587 { 587 {
588 if (!info[0]->IsFunction()) { 588 if (!info[0]->IsFunction()) {
589 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function."); 589 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function.");
590 exceptionState.throwIfNeeded(); 590 exceptionState.throwIfNeeded();
591 return; 591 return;
592 } 592 }
593 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]) ; 593 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]) ;
594 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); 594 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]);
595 } 595 }
596 ScriptState* scriptState = ScriptState::forHolderObject(info); 596 ScriptState* scriptState = ScriptState::forReceiverObject(info);
597 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()) , callback, thisArg, exceptionState); 597 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()) , callback, thisArg, exceptionState);
598 if (exceptionState.hadException()) { 598 if (exceptionState.hadException()) {
599 exceptionState.throwIfNeeded(); 599 exceptionState.throwIfNeeded();
600 return; 600 return;
601 } 601 }
602 } 602 }
603 603
604 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) 604 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o)
605 { 605 {
606 TestInterface5ImplementationV8Internal::forEachMethod(info); 606 TestInterface5ImplementationV8Internal::forEachMethod(info);
607 } 607 }
608 608
609 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 609 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
610 { 610 {
611 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 611 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
612 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); 612 v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
613 } 613 }
614 614
615 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 615 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
616 { 616 {
617 TestInterface5ImplementationV8Internal::toStringMethod(info); 617 TestInterface5ImplementationV8Internal::toStringMethod(info);
618 } 618 }
619 619
620 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 620 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
621 { 621 {
622 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface5", info.Holder(), info.GetIsolate()); 622 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface5", info.Holder(), info.GetIsolate());
623 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ; 623 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder()) ;
624 ScriptState* scriptState = ScriptState::forHolderObject(info); 624 ScriptState* scriptState = ScriptState::forReceiverObject(info);
625 Iterator* result = impl->iterator(scriptState, exceptionState); 625 Iterator* result = impl->iterator(scriptState, exceptionState);
626 if (exceptionState.hadException()) { 626 if (exceptionState.hadException()) {
627 exceptionState.throwIfNeeded(); 627 exceptionState.throwIfNeeded();
628 return; 628 return;
629 } 629 }
630 v8SetReturnValue(info, result); 630 v8SetReturnValue(info, result);
631 } 631 }
632 632
633 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 633 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
634 { 634 {
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration); 922 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet hodMethodConfiguration);
923 } 923 }
924 } 924 }
925 925
926 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O bject> wrapper) 926 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O bject> wrapper)
927 { 927 {
928 return toImpl(wrapper); 928 return toImpl(wrapper);
929 } 929 }
930 930
931 } // namespace blink 931 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698