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

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

Issue 396283004: Make the MediaQueryList listener an EventListener (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 5 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 | Annotate | Revision Log
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"
(...skipping 30 matching lines...) Expand all
41 #include "bindings/tests/v8/V8TestCallbackInterface.h" 41 #include "bindings/tests/v8/V8TestCallbackInterface.h"
42 #include "bindings/tests/v8/V8TestInterface.h" 42 #include "bindings/tests/v8/V8TestInterface.h"
43 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" 43 #include "bindings/tests/v8/V8TestInterfaceEmpty.h"
44 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" 44 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h"
45 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" 45 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h"
46 #include "bindings/tests/v8/V8TestNode.h" 46 #include "bindings/tests/v8/V8TestNode.h"
47 #include "bindings/tests/v8/V8TestObject.h" 47 #include "bindings/tests/v8/V8TestObject.h"
48 #include "bindings/tests/v8/V8Window.h" 48 #include "bindings/tests/v8/V8Window.h"
49 #include "bindings/tests/v8/V8XPathNSResolver.h" 49 #include "bindings/tests/v8/V8XPathNSResolver.h"
50 #include "core/HTMLNames.h" 50 #include "core/HTMLNames.h"
51 #include "core/css/MediaQueryListListener.h"
52 #include "core/dom/ClassCollection.h" 51 #include "core/dom/ClassCollection.h"
53 #include "core/dom/ContextFeatures.h" 52 #include "core/dom/ContextFeatures.h"
54 #include "core/dom/Document.h" 53 #include "core/dom/Document.h"
55 #include "core/dom/TagCollection.h" 54 #include "core/dom/TagCollection.h"
56 #include "core/dom/custom/CustomElementCallbackDispatcher.h" 55 #include "core/dom/custom/CustomElementCallbackDispatcher.h"
57 #include "core/frame/LocalFrame.h" 56 #include "core/frame/LocalFrame.h"
58 #include "core/frame/UseCounter.h" 57 #include "core/frame/UseCounter.h"
59 #include "core/html/HTMLCollection.h" 58 #include "core/html/HTMLCollection.h"
60 #include "core/html/HTMLFormControlsCollection.h" 59 #include "core/html/HTMLFormControlsCollection.h"
61 #include "core/html/HTMLTableRowsCollection.h" 60 #include "core/html/HTMLTableRowsCollection.h"
(...skipping 5991 matching lines...) Expand 10 before | Expand all | Expand 10 after
6053 impl->voidMethodEventTargetArg(eventTargetArg); 6052 impl->voidMethodEventTargetArg(eventTargetArg);
6054 } 6053 }
6055 6054
6056 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 6055 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
6057 { 6056 {
6058 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6059 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 6058 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
6060 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6061 } 6060 }
6062 6061
6063 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
6064 {
6065 if (UNLIKELY(info.Length() < 1)) {
6066 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg ", "TestObject", 1, info.Length(), info.GetIsolate());
6067 return;
6068 }
6069 TestObject* impl = V8TestObject::toNative(info.Holder());
6070 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg;
6071 {
6072 v8::TryCatch block;
6073 V8RethrowTryCatchScope rethrow(block);
6074 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre nt(info.GetIsolate()), info[0])));
6075 }
6076 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
6077 }
6078
6079 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
6080 {
6081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6082 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info);
6083 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6084 }
6085
6086 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6062 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6087 { 6063 {
6088 if (UNLIKELY(info.Length() < 1)) { 6064 if (UNLIKELY(info.Length() < 1)) {
6089 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6065 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate());
6090 return; 6066 return;
6091 } 6067 }
6092 TestObject* impl = V8TestObject::toNative(info.Holder()); 6068 TestObject* impl = V8TestObject::toNative(info.Holder());
6093 ScriptValue anyArg; 6069 ScriptValue anyArg;
6094 { 6070 {
6095 v8::TryCatch block; 6071 v8::TryCatch block;
(...skipping 4552 matching lines...) Expand 10 before | Expand all | Expand 10 after
10648 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte rfaceEmptyArgMethodCallback, 0, 1}, 10624 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte rfaceEmptyArgMethodCallback, 0, 1},
10649 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL ongArgTestInterfaceEmptyArgMethodCallback, 0, 2}, 10625 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL ongArgTestInterfaceEmptyArgMethodCallback, 0, 2},
10650 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet hodMethodCallback, 0, 0}, 10626 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet hodMethodCallback, 0, 0},
10651 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac kFunctionOptionalAnyArgMethodMethodCallback, 0, 0}, 10627 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac kFunctionOptionalAnyArgMethodMethodCallback, 0, 0},
10652 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa llbackFunctionArgMethodCallback, 0, 1}, 10628 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa llbackFunctionArgMethodCallback, 0, 1},
10653 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1}, 10629 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1},
10654 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0 , 0}, 10630 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0 , 0},
10655 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0}, 10631 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0},
10656 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet hodCallback, 0, 1}, 10632 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet hodCallback, 0, 1},
10657 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM ethodCallback, 0, 1}, 10633 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM ethodCallback, 0, 1},
10658 {"voidMethodMediaQueryListListenerArg", TestObjectV8Internal::voidMethodMedi aQueryListListenerArgMethodCallback, 0, 1},
10659 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0 , 1}, 10634 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0 , 1},
10660 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback, 0, 1}, 10635 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback, 0, 1},
10661 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC allback, 0, 1}, 10636 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC allback, 0, 1},
10662 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr gMethodCallback, 0, 1}, 10637 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr gMethodCallback, 0, 1},
10663 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal lback, 0, 1}, 10638 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal lback, 0, 1},
10664 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback, 0, 1}, 10639 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback, 0, 1},
10665 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback, 0, 0}, 10640 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback, 0, 0},
10666 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC allback, 0, 0}, 10641 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC allback, 0, 0},
10667 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac k, 0, 0}, 10642 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac k, 0, 0},
10668 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0 , 0}, 10643 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0 , 0},
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
11017 fromInternalPointer(object)->deref(); 10992 fromInternalPointer(object)->deref();
11018 } 10993 }
11019 10994
11020 template<> 10995 template<>
11021 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 10996 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
11022 { 10997 {
11023 return toV8(impl, creationContext, isolate); 10998 return toV8(impl, creationContext, isolate);
11024 } 10999 }
11025 11000
11026 } // namespace blink 11001 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698