| 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 4443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4454 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4454 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4455 { | 4455 { |
| 4456 v8::Handle<v8::Object> holder = info.Holder(); | 4456 v8::Handle<v8::Object> holder = info.Holder(); |
| 4457 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); | 4457 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); |
| 4458 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) { | 4458 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) { |
| 4459 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 4459 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
| 4460 exceptionState.throwIfNeeded(); | 4460 exceptionState.throwIfNeeded(); |
| 4461 return; | 4461 return; |
| 4462 } | 4462 } |
| 4463 TestObject* impl = V8TestObject::toImpl(holder); | 4463 TestObject* impl = V8TestObject::toImpl(holder); |
| 4464 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 4464 TestInterfaceImplementation* cppValue = V8TestInterface::toImpl(v8::Handle<v
8::Object>::Cast(v8Value)); |
| 4465 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); | 4465 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); |
| 4466 } | 4466 } |
| 4467 | 4467 |
| 4468 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v
8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) | 4468 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v
8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) |
| 4469 { | 4469 { |
| 4470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4471 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe
tter(v8Value, info); | 4471 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe
tter(v8Value, info); |
| 4472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4473 } | 4473 } |
| 4474 | 4474 |
| (...skipping 6676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11151 return false; | 11151 return false; |
| 11152 | 11152 |
| 11153 ScriptState::Scope scope(scriptState); | 11153 ScriptState::Scope scope(scriptState); |
| 11154 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11154 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
| 11155 | 11155 |
| 11156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 11157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 11158 } | 11158 } |
| 11159 | 11159 |
| 11160 } // namespace blink | 11160 } // namespace blink |
| OLD | NEW |