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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.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
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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 1779
1780 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 1780 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1781 { 1781 {
1782 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); 1782 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info);
1783 } 1783 }
1784 1784
1785 static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1785 static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1786 { 1786 {
1787 ExceptionState exceptionState(ExceptionState::ExecutionContext, "toJSON", "T estInterface", info.Holder(), info.GetIsolate()); 1787 ExceptionState exceptionState(ExceptionState::ExecutionContext, "toJSON", "T estInterface", info.Holder(), info.GetIsolate());
1788 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1788 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1789 ScriptState* scriptState = ScriptState::forHolderObject(info); 1789 ScriptState* scriptState = ScriptState::forReceiverObject(info);
1790 ScriptValue result = impl->toJSONForBinding(scriptState, exceptionState); 1790 ScriptValue result = impl->toJSONForBinding(scriptState, exceptionState);
1791 if (exceptionState.hadException()) { 1791 if (exceptionState.hadException()) {
1792 exceptionState.throwIfNeeded(); 1792 exceptionState.throwIfNeeded();
1793 return; 1793 return;
1794 } 1794 }
1795 v8SetReturnValue(info, result.v8Value()); 1795 v8SetReturnValue(info, result.v8Value());
1796 } 1796 }
1797 1797
1798 static void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) 1798 static void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info )
1799 { 1799 {
1800 TestInterfaceImplementationV8Internal::toJSONMethod(info); 1800 TestInterfaceImplementationV8Internal::toJSONMethod(info);
1801 } 1801 }
1802 1802
1803 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1803 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1804 { 1804 {
1805 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1805 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1806 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); 1806 v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
1807 } 1807 }
1808 1808
1809 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 1809 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
1810 { 1810 {
1811 TestInterfaceImplementationV8Internal::toStringMethod(info); 1811 TestInterfaceImplementationV8Internal::toStringMethod(info);
1812 } 1812 }
1813 1813
1814 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1814 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1815 { 1815 {
1816 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface", info.Holder(), info.GetIsolate()); 1816 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface", info.Holder(), info.GetIsolate());
1817 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1817 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1818 ScriptState* scriptState = ScriptState::forHolderObject(info); 1818 ScriptState* scriptState = ScriptState::forReceiverObject(info);
1819 Iterator* result = impl->iterator(scriptState, exceptionState); 1819 Iterator* result = impl->iterator(scriptState, exceptionState);
1820 if (exceptionState.hadException()) { 1820 if (exceptionState.hadException()) {
1821 exceptionState.throwIfNeeded(); 1821 exceptionState.throwIfNeeded();
1822 return; 1822 return;
1823 } 1823 }
1824 v8SetReturnValue(info, result); 1824 v8SetReturnValue(info, result);
1825 } 1825 }
1826 1826
1827 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 1827 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
1828 { 1828 {
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 { 2366 {
2367 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2367 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2368 } 2368 }
2369 2369
2370 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2370 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2371 { 2371 {
2372 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2372 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2373 } 2373 }
2374 2374
2375 } // namespace blink 2375 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698