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

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 1159653002: [bindings] Introduce PostMessage extended keyword (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Typo correction: missing space in methods.cpp Created 5 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
« no previous file with comments | « Source/bindings/tests/idls/core/TestObject.idl ('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 "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
11 #include "bindings/core/v8/Dictionary.h" 11 #include "bindings/core/v8/Dictionary.h"
12 #include "bindings/core/v8/ExceptionState.h" 12 #include "bindings/core/v8/ExceptionState.h"
13 #include "bindings/core/v8/PostMessage.h"
13 #include "bindings/core/v8/PrivateScriptRunner.h" 14 #include "bindings/core/v8/PrivateScriptRunner.h"
14 #include "bindings/core/v8/ScriptCallStackFactory.h" 15 #include "bindings/core/v8/ScriptCallStackFactory.h"
15 #include "bindings/core/v8/ScriptPromise.h" 16 #include "bindings/core/v8/ScriptPromise.h"
16 #include "bindings/core/v8/ScriptState.h" 17 #include "bindings/core/v8/ScriptState.h"
17 #include "bindings/core/v8/ScriptValue.h" 18 #include "bindings/core/v8/ScriptValue.h"
18 #include "bindings/core/v8/SerializedScriptValue.h" 19 #include "bindings/core/v8/SerializedScriptValue.h"
19 #include "bindings/core/v8/SerializedScriptValueFactory.h" 20 #include "bindings/core/v8/SerializedScriptValueFactory.h"
20 #include "bindings/core/v8/UnionTypesCore.h" 21 #include "bindings/core/v8/UnionTypesCore.h"
21 #include "bindings/core/v8/V8AbstractEventListener.h" 22 #include "bindings/core/v8/V8AbstractEventListener.h"
22 #include "bindings/core/v8/V8ArrayBuffer.h" 23 #include "bindings/core/v8/V8ArrayBuffer.h"
23 #include "bindings/core/v8/V8ArrayBufferView.h" 24 #include "bindings/core/v8/V8ArrayBufferView.h"
24 #include "bindings/core/v8/V8Attr.h" 25 #include "bindings/core/v8/V8Attr.h"
25 #include "bindings/core/v8/V8DOMActivityLogger.h" 26 #include "bindings/core/v8/V8DOMActivityLogger.h"
26 #include "bindings/core/v8/V8DOMConfiguration.h" 27 #include "bindings/core/v8/V8DOMConfiguration.h"
27 #include "bindings/core/v8/V8Document.h" 28 #include "bindings/core/v8/V8Document.h"
28 #include "bindings/core/v8/V8DocumentFragment.h" 29 #include "bindings/core/v8/V8DocumentFragment.h"
29 #include "bindings/core/v8/V8DocumentType.h" 30 #include "bindings/core/v8/V8DocumentType.h"
30 #include "bindings/core/v8/V8Element.h" 31 #include "bindings/core/v8/V8Element.h"
31 #include "bindings/core/v8/V8EventListenerList.h" 32 #include "bindings/core/v8/V8EventListenerList.h"
32 #include "bindings/core/v8/V8EventTarget.h" 33 #include "bindings/core/v8/V8EventTarget.h"
33 #include "bindings/core/v8/V8Float32Array.h" 34 #include "bindings/core/v8/V8Float32Array.h"
34 #include "bindings/core/v8/V8HTMLCollection.h" 35 #include "bindings/core/v8/V8HTMLCollection.h"
35 #include "bindings/core/v8/V8HTMLElement.h" 36 #include "bindings/core/v8/V8HTMLElement.h"
36 #include "bindings/core/v8/V8HiddenValue.h" 37 #include "bindings/core/v8/V8HiddenValue.h"
37 #include "bindings/core/v8/V8Int32Array.h" 38 #include "bindings/core/v8/V8Int32Array.h"
38 #include "bindings/core/v8/V8Iterator.h" 39 #include "bindings/core/v8/V8Iterator.h"
40 #include "bindings/core/v8/V8MessagePort.h"
39 #include "bindings/core/v8/V8Node.h" 41 #include "bindings/core/v8/V8Node.h"
40 #include "bindings/core/v8/V8NodeFilter.h" 42 #include "bindings/core/v8/V8NodeFilter.h"
41 #include "bindings/core/v8/V8ObjectConstructor.h" 43 #include "bindings/core/v8/V8ObjectConstructor.h"
42 #include "bindings/core/v8/V8ShadowRoot.h" 44 #include "bindings/core/v8/V8ShadowRoot.h"
43 #include "bindings/core/v8/V8TestCallbackInterface.h" 45 #include "bindings/core/v8/V8TestCallbackInterface.h"
44 #include "bindings/core/v8/V8TestDictionary.h" 46 #include "bindings/core/v8/V8TestDictionary.h"
45 #include "bindings/core/v8/V8TestInterface.h" 47 #include "bindings/core/v8/V8TestInterface.h"
46 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 48 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
47 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" 49 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h"
48 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" 50 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h"
(...skipping 10806 matching lines...) Expand 10 before | Expand all | Expand 10 after
10855 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 10857 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
10856 } 10858 }
10857 10859
10858 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 10860 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
10859 { 10861 {
10860 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10861 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info); 10863 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info);
10862 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10863 } 10865 }
10864 10866
10867 static void postMessageMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10868 {
10869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10870 postMessageMethodCommon("TestObject", V8TestObject::toImpl(info.Holder()), i nfo);
10871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10872 }
10873
10865 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 10874 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
10866 { 10875 {
10867 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10876 TestObject* impl = V8TestObject::toImpl(info.Holder());
10868 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 10877 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
10869 } 10878 }
10870 10879
10871 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 10880 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
10872 { 10881 {
10873 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10874 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 10883 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
(...skipping 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after
12754 {"measureOverloadedMethod", TestObjectV8Internal::measureOverloadedMethodMet hodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12763 {"measureOverloadedMethod", TestObjectV8Internal::measureOverloadedMethodMet hodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12755 {"DeprecateAsOverloadedMethod", TestObjectV8Internal::DeprecateAsOverloadedM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12764 {"DeprecateAsOverloadedMethod", TestObjectV8Internal::DeprecateAsOverloadedM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12756 {"DeprecateAsSameValueOverloadedMethod", TestObjectV8Internal::DeprecateAsSa meValueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts}, 12765 {"DeprecateAsSameValueOverloadedMethod", TestObjectV8Internal::DeprecateAsSa meValueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts},
12757 {"measureAsOverloadedMethod", TestObjectV8Internal::measureAsOverloadedMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12766 {"measureAsOverloadedMethod", TestObjectV8Internal::measureAsOverloadedMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12758 {"measureAsSameValueOverloadedMethod", TestObjectV8Internal::measureAsSameVa lueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts }, 12767 {"measureAsSameValueOverloadedMethod", TestObjectV8Internal::measureAsSameVa lueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts },
12759 {"deprecateAsMeasureAsSameValueOverloadedMethod", TestObjectV8Internal::depr ecateAsMeasureAsSameValueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts}, 12768 {"deprecateAsMeasureAsSameValueOverloadedMethod", TestObjectV8Internal::depr ecateAsMeasureAsSameValueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts},
12760 {"deprecateAsSameValueMeasureAsOverloadedMethod", TestObjectV8Internal::depr ecateAsSameValueMeasureAsOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts}, 12769 {"deprecateAsSameValueMeasureAsOverloadedMethod", TestObjectV8Internal::depr ecateAsSameValueMeasureAsOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts},
12761 {"deprecateAsSameValueMeasureAsSameValueOverloadedMethod", TestObjectV8Inter nal::deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12770 {"deprecateAsSameValueMeasureAsSameValueOverloadedMethod", TestObjectV8Inter nal::deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12762 {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMet hodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbac kForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 12771 {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMet hodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbac kForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
12763 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1, V8DOMConfiguration::ExposedToAllScripts}, 12772 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1, V8DOMConfiguration::ExposedToAllScripts},
12773 {"postMessage", TestObjectV8Internal::postMessageMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts},
12764 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba ckForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 12774 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba ckForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
12765 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet hodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, 12775 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet hodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts},
12766 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12776 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12767 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12777 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12768 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts}, 12778 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts},
12769 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1, V8DOMConf iguration::ExposedToAllScripts}, 12779 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1, V8DOMConf iguration::ExposedToAllScripts},
12770 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12780 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12771 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::E xposedToAllScripts}, 12781 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::E xposedToAllScripts},
12772 {"raisesExceptionXPathNSResolverVoidMethod", TestObjectV8Internal::raisesExc eptionXPathNSResolverVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts}, 12782 {"raisesExceptionXPathNSResolverVoidMethod", TestObjectV8Internal::raisesExc eptionXPathNSResolverVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::Exposed ToAllScripts},
12773 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts}, 12783 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
13532 ScriptState::Scope scope(scriptState); 13542 ScriptState::Scope scope(scriptState);
13533 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13543 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13534 if (holder.IsEmpty()) 13544 if (holder.IsEmpty())
13535 return false; 13545 return false;
13536 13546
13537 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13547 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13538 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13548 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13539 } 13549 }
13540 13550
13541 } // namespace blink 13551 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/core/TestObject.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698