| 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 "V8TestInterfaceEventConstructor.h" | 8 #include "V8TestInterfaceEventConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 108 } | 108 } |
| 109 | 109 |
| 110 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::FunctionCallbackInfo<v8::Value>& info) | 110 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 111 { | 111 { |
| 112 v8::Local<v8::Object> holder = info.Holder(); | 112 v8::Local<v8::Object> holder = info.Holder(); |
| 113 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 113 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 114 RefPtr<DOMUint8Array> cppValue(impl->initializedByEventConstructorReadonlyUi
nt8ArrayAttribute()); | 114 RefPtr<DOMUint8Array> cppValue(impl->initializedByEventConstructorReadonlyUi
nt8ArrayAttribute()); |
| 115 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 115 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
| 116 return; | 116 return; |
| 117 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate(
)); | 117 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
| 118 if (!wrapper.IsEmpty()) { | 118 if (!v8Value.IsEmpty()) { |
| 119 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"),
wrapper); | 119 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"),
v8Value); |
| 120 v8SetReturnValue(info, wrapper); | 120 v8SetReturnValue(info, v8Value); |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 124 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 125 { | 125 { |
| 126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 127 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); | 127 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyUint8ArrayAttributeAttributeGetter(info); |
| 128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 129 } | 129 } |
| 130 | 130 |
| 131 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::FunctionCallbackInfo<v8::Value>& info) | 131 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 132 { | 132 { |
| 133 v8::Local<v8::Object> holder = info.Holder(); | 133 v8::Local<v8::Object> holder = info.Holder(); |
| 134 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 134 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 135 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyTestInterfaceEmptyAttribute()); | 135 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyTestInterfaceEmptyAttribute()); |
| 136 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 136 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
| 137 return; | 137 return; |
| 138 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate(
)); | 138 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
| 139 if (!wrapper.IsEmpty()) { | 139 if (!v8Value.IsEmpty()) { |
| 140 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri
bute"), wrapper); | 140 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri
bute"), v8Value); |
| 141 v8SetReturnValue(info, wrapper); | 141 v8SetReturnValue(info, v8Value); |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 145 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr
ibuteGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 146 { | 146 { |
| 147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 148 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); | 148 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyAttributeAttributeGetter(info); |
| 149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 150 } | 150 } |
| 151 | 151 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 164 } | 164 } |
| 165 | 165 |
| 166 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) | 166 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 167 { | 167 { |
| 168 v8::Local<v8::Object> holder = info.Holder(); | 168 v8::Local<v8::Object> holder = info.Holder(); |
| 169 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 169 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
| 170 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyNullableTestInterfaceEmptyAttribute()); | 170 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyNullableTestInterfaceEmptyAttribute()); |
| 171 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 171 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
| 172 return; | 172 return; |
| 173 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate(
)); | 173 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
| 174 if (!wrapper.IsEmpty()) { | 174 if (!v8Value.IsEmpty()) { |
| 175 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); | 175 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), v8Value); |
| 176 v8SetReturnValue(info, wrapper); | 176 v8SetReturnValue(info, v8Value); |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| 180 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 180 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 181 { | 181 { |
| 182 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 182 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 183 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); | 183 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); |
| 184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 185 } | 185 } |
| 186 | 186 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 } | 383 } |
| 384 | 384 |
| 385 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 385 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
| 386 { | 386 { |
| 387 #if !ENABLE(OILPAN) | 387 #if !ENABLE(OILPAN) |
| 388 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); | 388 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); |
| 389 #endif | 389 #endif |
| 390 } | 390 } |
| 391 | 391 |
| 392 } // namespace blink | 392 } // namespace blink |
| OLD | NEW |