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

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

Issue 1269443002: Introduce FlexibleArrayBufferView and TypedFlexibleArrayBufferView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 "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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "bindings/core/v8/V8TestNode.h" 50 #include "bindings/core/v8/V8TestNode.h"
51 #include "bindings/core/v8/V8TestObject.h" 51 #include "bindings/core/v8/V8TestObject.h"
52 #include "bindings/core/v8/V8Uint8Array.h" 52 #include "bindings/core/v8/V8Uint8Array.h"
53 #include "bindings/core/v8/V8Window.h" 53 #include "bindings/core/v8/V8Window.h"
54 #include "bindings/core/v8/V8XPathNSResolver.h" 54 #include "bindings/core/v8/V8XPathNSResolver.h"
55 #include "core/HTMLNames.h" 55 #include "core/HTMLNames.h"
56 #include "core/dom/ClassCollection.h" 56 #include "core/dom/ClassCollection.h"
57 #include "core/dom/ContextFeatures.h" 57 #include "core/dom/ContextFeatures.h"
58 #include "core/dom/DOMArrayBuffer.h" 58 #include "core/dom/DOMArrayBuffer.h"
59 #include "core/dom/Document.h" 59 #include "core/dom/Document.h"
60 #include "core/dom/FlexibleArrayBufferView.h"
60 #include "core/dom/MessagePort.h" 61 #include "core/dom/MessagePort.h"
61 #include "core/dom/TagCollection.h" 62 #include "core/dom/TagCollection.h"
63 #include "core/dom/TypedFlexibleArrayBufferView.h"
62 #include "core/dom/custom/CustomElementProcessingStack.h" 64 #include "core/dom/custom/CustomElementProcessingStack.h"
63 #include "core/frame/LocalFrame.h" 65 #include "core/frame/LocalFrame.h"
64 #include "core/frame/UseCounter.h" 66 #include "core/frame/UseCounter.h"
65 #include "core/html/HTMLCollection.h" 67 #include "core/html/HTMLCollection.h"
66 #include "core/html/HTMLDataListOptionsCollection.h" 68 #include "core/html/HTMLDataListOptionsCollection.h"
67 #include "core/html/HTMLFormControlsCollection.h" 69 #include "core/html/HTMLFormControlsCollection.h"
68 #include "core/html/HTMLTableRowsCollection.h" 70 #include "core/html/HTMLTableRowsCollection.h"
69 #include "core/inspector/ConsoleMessage.h" 71 #include "core/inspector/ConsoleMessage.h"
70 #include "core/inspector/ScriptArguments.h" 72 #include "core/inspector/ScriptArguments.h"
71 #include "platform/RuntimeEnabledFeatures.h" 73 #include "platform/RuntimeEnabledFeatures.h"
(...skipping 6747 matching lines...) Expand 10 before | Expand all | Expand 10 after
6819 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 6821 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
6820 } 6822 }
6821 6823
6822 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 6824 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
6823 { 6825 {
6824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6826 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6825 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 6827 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
6826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6828 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6827 } 6829 }
6828 6830
6831 static void voidMethodFlexibleArrayBufferViewArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6832 {
6833 if (UNLIKELY(info.Length() < 1)) {
6834 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodFlexibleArrayBufferViewArg", "TestObject", 1, info.L ength()), info.GetIsolate());
6835 return;
6836 }
6837 TestObject* impl = V8TestObject::toImpl(info.Holder());
6838 FlexibleArrayBufferView arrayBufferViewArg;
6839 {
6840 toFlexibleArrayBufferView(info.GetIsolate(), info[0], arrayBufferViewArg , SMALL_ARRAY_BUFFER_VIEW_STORAGE(info[0]));
6841 }
6842 impl->voidMethodFlexibleArrayBufferViewArg(arrayBufferViewArg);
6843 }
6844
6845 static void voidMethodFlexibleArrayBufferViewArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6846 {
6847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6848 TestObjectV8Internal::voidMethodFlexibleArrayBufferViewArgMethod(info);
6849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6850 }
6851
6852 static void voidMethodFlexibleArrayBufferViewTypedArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
6853 {
6854 if (UNLIKELY(info.Length() < 1)) {
6855 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodFlexibleArrayBufferViewTypedArg", "TestObject", 1, i nfo.Length()), info.GetIsolate());
6856 return;
6857 }
6858 TestObject* impl = V8TestObject::toImpl(info.Holder());
6859 FlexibleFloat32ArrayView typedArrayBufferViewArg;
6860 {
6861 toFlexibleArrayBufferView(info.GetIsolate(), info[0], typedArrayBufferVi ewArg, SMALL_ARRAY_BUFFER_VIEW_STORAGE(info[0]));
6862 }
6863 impl->voidMethodFlexibleArrayBufferViewTypedArg(typedArrayBufferViewArg);
6864 }
6865
6866 static void voidMethodFlexibleArrayBufferViewTypedArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
6867 {
6868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6869 TestObjectV8Internal::voidMethodFlexibleArrayBufferViewTypedArgMethod(info);
6870 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6871 }
6872
6829 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6873 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6830 { 6874 {
6831 if (UNLIKELY(info.Length() < 1)) { 6875 if (UNLIKELY(info.Length() < 1)) {
6832 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()), i nfo.GetIsolate()); 6876 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()), i nfo.GetIsolate());
6833 return; 6877 return;
6834 } 6878 }
6835 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6879 TestObject* impl = V8TestObject::toImpl(info.Holder());
6836 DOMFloat32Array* float32ArrayArg; 6880 DOMFloat32Array* float32ArrayArg;
6837 { 6881 {
6838 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Local<v8::Float32Array>::Cast(info[0])) : 0; 6882 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Local<v8::Float32Array>::Cast(info[0])) : 0;
(...skipping 5812 matching lines...) Expand 10 before | Expand all | Expand 10 after
12651 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12695 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12652 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12696 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12653 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12697 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12654 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12698 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12655 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12699 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12656 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 12700 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
12657 {"uint8ArrayMethod", TestObjectV8Internal::uint8ArrayMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 12701 {"uint8ArrayMethod", TestObjectV8Internal::uint8ArrayMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
12658 {"voidMethodArrayBufferArg", TestObjectV8Internal::voidMethodArrayBufferArgM ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12702 {"voidMethodArrayBufferArg", TestObjectV8Internal::voidMethodArrayBufferArgM ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12659 {"voidMethodArrayBufferOrNullArg", TestObjectV8Internal::voidMethodArrayBuff erOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12703 {"voidMethodArrayBufferOrNullArg", TestObjectV8Internal::voidMethodArrayBuff erOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12660 {"voidMethodArrayBufferViewArg", TestObjectV8Internal::voidMethodArrayBuffer ViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12704 {"voidMethodArrayBufferViewArg", TestObjectV8Internal::voidMethodArrayBuffer ViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12705 {"voidMethodFlexibleArrayBufferViewArg", TestObjectV8Internal::voidMethodFle xibleArrayBufferViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr ipts},
12706 {"voidMethodFlexibleArrayBufferViewTypedArg", TestObjectV8Internal::voidMeth odFlexibleArrayBufferViewTypedArgMethodCallback, 0, 1, V8DOMConfiguration::Expos edToAllScripts},
12661 {"voidMethodFloat32ArrayArg", TestObjectV8Internal::voidMethodFloat32ArrayAr gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12707 {"voidMethodFloat32ArrayArg", TestObjectV8Internal::voidMethodFloat32ArrayAr gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12662 {"voidMethodInt32ArrayArg", TestObjectV8Internal::voidMethodInt32ArrayArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12708 {"voidMethodInt32ArrayArg", TestObjectV8Internal::voidMethodInt32ArrayArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12663 {"voidMethodUint8ArrayArg", TestObjectV8Internal::voidMethodUint8ArrayArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12709 {"voidMethodUint8ArrayArg", TestObjectV8Internal::voidMethodUint8ArrayArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12664 {"longArrayMethod", TestObjectV8Internal::longArrayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12710 {"longArrayMethod", TestObjectV8Internal::longArrayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12665 {"stringArrayMethod", TestObjectV8Internal::stringArrayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12711 {"stringArrayMethod", TestObjectV8Internal::stringArrayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12666 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr rayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12712 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr rayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12667 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho dCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12713 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho dCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12668 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12714 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
12669 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr ayTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr ipts}, 12715 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr ayTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr ipts},
12670 {"voidMethodNullableArrayLongArg", TestObjectV8Internal::voidMethodNullableA rrayLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 12716 {"voidMethodNullableArrayLongArg", TestObjectV8Internal::voidMethodNullableA rrayLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
13552 ScriptState::Scope scope(scriptState); 13598 ScriptState::Scope scope(scriptState);
13553 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13599 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13554 if (holder.IsEmpty()) 13600 if (holder.IsEmpty())
13555 return false; 13601 return false;
13556 13602
13557 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13603 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13558 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13604 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13559 } 13605 }
13560 13606
13561 } // namespace blink 13607 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698