OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" | 48 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" |
49 #include "bindings/core/v8/V8TestNode.h" | 49 #include "bindings/core/v8/V8TestNode.h" |
50 #include "bindings/core/v8/V8TestObject.h" | 50 #include "bindings/core/v8/V8TestObject.h" |
51 #include "bindings/core/v8/V8Uint8Array.h" | 51 #include "bindings/core/v8/V8Uint8Array.h" |
52 #include "bindings/core/v8/V8Window.h" | 52 #include "bindings/core/v8/V8Window.h" |
53 #include "bindings/core/v8/V8XPathNSResolver.h" | 53 #include "bindings/core/v8/V8XPathNSResolver.h" |
54 #include "core/HTMLNames.h" | 54 #include "core/HTMLNames.h" |
55 #include "core/dom/ClassCollection.h" | 55 #include "core/dom/ClassCollection.h" |
56 #include "core/dom/ContextFeatures.h" | 56 #include "core/dom/ContextFeatures.h" |
57 #include "core/dom/Document.h" | 57 #include "core/dom/Document.h" |
| 58 #include "core/dom/FlexibleArrayBufferView.h" |
58 #include "core/dom/TagCollection.h" | 59 #include "core/dom/TagCollection.h" |
59 #include "core/dom/custom/CustomElementProcessingStack.h" | 60 #include "core/dom/custom/CustomElementProcessingStack.h" |
60 #include "core/frame/LocalFrame.h" | 61 #include "core/frame/LocalFrame.h" |
61 #include "core/frame/UseCounter.h" | 62 #include "core/frame/UseCounter.h" |
62 #include "core/html/HTMLCollection.h" | 63 #include "core/html/HTMLCollection.h" |
63 #include "core/html/HTMLDataListOptionsCollection.h" | 64 #include "core/html/HTMLDataListOptionsCollection.h" |
64 #include "core/html/HTMLFormControlsCollection.h" | 65 #include "core/html/HTMLFormControlsCollection.h" |
65 #include "core/html/HTMLTableRowsCollection.h" | 66 #include "core/html/HTMLTableRowsCollection.h" |
66 #include "core/inspector/ConsoleMessage.h" | 67 #include "core/inspector/ConsoleMessage.h" |
67 #include "core/inspector/ScriptArguments.h" | 68 #include "core/inspector/ScriptArguments.h" |
(...skipping 6618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6686 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 6687 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
6687 } | 6688 } |
6688 | 6689 |
6689 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6690 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6690 { | 6691 { |
6691 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6692 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); | 6693 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); |
6693 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6694 } | 6695 } |
6695 | 6696 |
| 6697 static void voidMethodFlexibleArrayBufferViewArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 6698 { |
| 6699 if (UNLIKELY(info.Length() < 1)) { |
| 6700 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodFlexibleArrayBufferViewArg", "TestObject", 1, info.L
ength()), info.GetIsolate()); |
| 6701 return; |
| 6702 } |
| 6703 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6704 FlexibleArrayBufferView arrayBufferViewArg; |
| 6705 { |
| 6706 toFlexibleArrayBufferView(info.GetIsolate(), info[0], arrayBufferViewArg
, SMALL_ARRAY_BUFFER_VIEW_STORAGE(info[0])); |
| 6707 } |
| 6708 impl->voidMethodFlexibleArrayBufferViewArg(arrayBufferViewArg); |
| 6709 } |
| 6710 |
| 6711 static void voidMethodFlexibleArrayBufferViewArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 6712 { |
| 6713 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6714 TestObjectV8Internal::voidMethodFlexibleArrayBufferViewArgMethod(info); |
| 6715 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6716 } |
| 6717 |
6696 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6718 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6697 { | 6719 { |
6698 if (UNLIKELY(info.Length() < 1)) { | 6720 if (UNLIKELY(info.Length() < 1)) { |
6699 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()), i
nfo.GetIsolate()); | 6721 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()), i
nfo.GetIsolate()); |
6700 return; | 6722 return; |
6701 } | 6723 } |
6702 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6724 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6703 DOMFloat32Array* float32ArrayArg; | 6725 DOMFloat32Array* float32ArrayArg; |
6704 { | 6726 { |
6705 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8:
:Local<v8::Float32Array>::Cast(info[0])) : 0; | 6727 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8:
:Local<v8::Float32Array>::Cast(info[0])) : 0; |
(...skipping 5690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12396 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12418 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12397 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12419 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12398 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12420 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12399 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12421 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12400 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12422 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12401 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12423 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12402 {"uint8ArrayMethod", TestObjectV8Internal::uint8ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12424 {"uint8ArrayMethod", TestObjectV8Internal::uint8ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12403 {"voidMethodArrayBufferArg", TestObjectV8Internal::voidMethodArrayBufferArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12425 {"voidMethodArrayBufferArg", TestObjectV8Internal::voidMethodArrayBufferArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12404 {"voidMethodArrayBufferOrNullArg", TestObjectV8Internal::voidMethodArrayBuff
erOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12426 {"voidMethodArrayBufferOrNullArg", TestObjectV8Internal::voidMethodArrayBuff
erOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12405 {"voidMethodArrayBufferViewArg", TestObjectV8Internal::voidMethodArrayBuffer
ViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12427 {"voidMethodArrayBufferViewArg", TestObjectV8Internal::voidMethodArrayBuffer
ViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 12428 {"voidMethodFlexibleArrayBufferViewArg", TestObjectV8Internal::voidMethodFle
xibleArrayBufferViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
12406 {"voidMethodFloat32ArrayArg", TestObjectV8Internal::voidMethodFloat32ArrayAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12429 {"voidMethodFloat32ArrayArg", TestObjectV8Internal::voidMethodFloat32ArrayAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12407 {"voidMethodInt32ArrayArg", TestObjectV8Internal::voidMethodInt32ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12430 {"voidMethodInt32ArrayArg", TestObjectV8Internal::voidMethodInt32ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12408 {"voidMethodUint8ArrayArg", TestObjectV8Internal::voidMethodUint8ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12431 {"voidMethodUint8ArrayArg", TestObjectV8Internal::voidMethodUint8ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12409 {"longArrayMethod", TestObjectV8Internal::longArrayMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, | 12432 {"longArrayMethod", TestObjectV8Internal::longArrayMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, |
12410 {"stringArrayMethod", TestObjectV8Internal::stringArrayMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12433 {"stringArrayMethod", TestObjectV8Internal::stringArrayMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12411 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr
rayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12434 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr
rayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12412 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho
dCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12435 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho
dCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12413 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12436 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12414 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr
ayTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, | 12437 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr
ayTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
12415 {"voidMethodNullableArrayLongArg", TestObjectV8Internal::voidMethodNullableA
rrayLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12438 {"voidMethodNullableArrayLongArg", TestObjectV8Internal::voidMethodNullableA
rrayLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13272 return false; | 13295 return false; |
13273 | 13296 |
13274 ScriptState::Scope scope(scriptState); | 13297 ScriptState::Scope scope(scriptState); |
13275 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13298 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13276 | 13299 |
13277 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13300 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13278 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13301 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13279 } | 13302 } |
13280 | 13303 |
13281 } // namespace blink | 13304 } // namespace blink |
OLD | NEW |