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

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

Powered by Google App Engine
This is Rietveld 408576698