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 9642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9653 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("t
ypeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Leng
th(), info.GetIsolate()), info.GetIsolate()); | 9653 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("t
ypeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Leng
th(), info.GetIsolate()), info.GetIsolate()); |
9654 return; | 9654 return; |
9655 } | 9655 } |
9656 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9656 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9657 TestInterfaceEmpty* testInterfaceEmptyArg; | 9657 TestInterfaceEmpty* testInterfaceEmptyArg; |
9658 { | 9658 { |
9659 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())) { | 9659 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())) { |
9660 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter
1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 9660 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter
1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
9661 return; | 9661 return; |
9662 } | 9662 } |
9663 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); | 9663 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje
ct>::Cast(info[0])); |
9664 } | 9664 } |
9665 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); | 9665 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); |
9666 } | 9666 } |
9667 | 9667 |
9668 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 9668 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
9669 { | 9669 { |
9670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9671 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); | 9671 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); |
9672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9673 } | 9673 } |
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11049 return false; | 11049 return false; |
11050 | 11050 |
11051 ScriptState::Scope scope(scriptState); | 11051 ScriptState::Scope scope(scriptState); |
11052 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11052 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11053 | 11053 |
11054 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11054 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11055 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11055 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11056 } | 11056 } |
11057 | 11057 |
11058 } // namespace blink | 11058 } // namespace blink |
OLD | NEW |