| 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 "V8TestInterfaceEventInitConstructor.h" | 8 #include "V8TestInterfaceEventInitConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eEventInitConstructor.h. | 27 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eEventInitConstructor.h. |
| 28 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 28 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 29 // bindings/core/v8/ScriptWrappable.h. | 29 // bindings/core/v8/ScriptWrappable.h. |
| 30 const WrapperTypeInfo& TestInterfaceEventInitConstructor::s_wrapperTypeInfo = V8
TestInterfaceEventInitConstructor::wrapperTypeInfo; | 30 const WrapperTypeInfo& TestInterfaceEventInitConstructor::s_wrapperTypeInfo = V8
TestInterfaceEventInitConstructor::wrapperTypeInfo; |
| 31 | 31 |
| 32 namespace TestInterfaceEventInitConstructorV8Internal { | 32 namespace TestInterfaceEventInitConstructorV8Internal { |
| 33 | 33 |
| 34 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 34 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 35 { | 35 { |
| 36 v8::Handle<v8::Object> holder = info.Holder(); | 36 v8::Local<v8::Object> holder = info.Holder(); |
| 37 TestInterfaceEventInitConstructor* impl = V8TestInterfaceEventInitConstructo
r::toImpl(holder); | 37 TestInterfaceEventInitConstructor* impl = V8TestInterfaceEventInitConstructo
r::toImpl(holder); |
| 38 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 38 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
| 39 } | 39 } |
| 40 | 40 |
| 41 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 41 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 42 { | 42 { |
| 43 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 43 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 44 TestInterfaceEventInitConstructorV8Internal::readonlyStringAttributeAttribut
eGetter(info); | 44 TestInterfaceEventInitConstructorV8Internal::readonlyStringAttributeAttribut
eGetter(info); |
| 45 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 45 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 46 } | 46 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 58 { | 58 { |
| 59 TOSTRING_VOID_INTERNAL(type, info[0]); | 59 TOSTRING_VOID_INTERNAL(type, info[0]); |
| 60 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 60 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
| 61 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit'
) is not an object."); | 61 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit'
) is not an object."); |
| 62 exceptionState.throwIfNeeded(); | 62 exceptionState.throwIfNeeded(); |
| 63 return; | 63 return; |
| 64 } | 64 } |
| 65 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestInterfaceEventInit::toImp
l(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState), exception
State); | 65 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestInterfaceEventInit::toImp
l(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState), exception
State); |
| 66 } | 66 } |
| 67 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); | 67 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); |
| 68 v8::Handle<v8::Object> wrapper = info.Holder(); | 68 v8::Local<v8::Object> wrapper = info.Holder(); |
| 69 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst
ructor::wrapperTypeInfo, wrapper); | 69 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst
ructor::wrapperTypeInfo, wrapper); |
| 70 v8SetReturnValue(info, wrapper); | 70 v8SetReturnValue(info, wrapper); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace TestInterfaceEventInitConstructorV8Internal | 73 } // namespace TestInterfaceEventInitConstructorV8Internal |
| 74 | 74 |
| 75 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit
ConstructorAttributes[] = { | 75 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit
ConstructorAttributes[] = { |
| 76 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 76 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
| 77 }; | 77 }; |
| 78 | 78 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 140 } |
| 141 | 141 |
| 142 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) | 142 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) |
| 143 { | 143 { |
| 144 #if !ENABLE(OILPAN) | 144 #if !ENABLE(OILPAN) |
| 145 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); | 145 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); |
| 146 #endif | 146 #endif |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace blink | 149 } // namespace blink |
| OLD | NEW |