| 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/custom/V8Uint8ArrayCustom.h" | 10 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 { | 172 { |
| 173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); | 174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); |
| 175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 176 } | 176 } |
| 177 | 177 |
| 178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 179 { | 179 { |
| 180 v8::Handle<v8::Object> holder = info.Holder(); | 180 v8::Handle<v8::Object> holder = info.Holder(); |
| 181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); | 181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 182 bool isNull = false; | 182 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyNullableTestInterfaceEmptyAttribute()); |
| 183 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado
nlyNullableTestInterfaceEmptyAttribute(isNull)); | 183 if (!cppValue) { |
| 184 if (isNull) { | |
| 185 v8SetReturnValueNull(info); | 184 v8SetReturnValueNull(info); |
| 186 return; | 185 return; |
| 187 } | 186 } |
| 188 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty
>(info.GetReturnValue(), cppValue.get())) | 187 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty
>(info.GetReturnValue(), cppValue.get())) |
| 189 return; | 188 return; |
| 190 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate
()); | 189 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate
()); |
| 191 if (!wrapper.IsEmpty()) { | 190 if (!wrapper.IsEmpty()) { |
| 192 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); | 191 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); |
| 193 v8SetReturnValue(info, wrapper); | 192 v8SetReturnValue(info, wrapper); |
| 194 } | 193 } |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 #endif // !ENABLE(OILPAN) | 423 #endif // !ENABLE(OILPAN) |
| 425 } | 424 } |
| 426 | 425 |
| 427 template<> | 426 template<> |
| 428 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 427 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 429 { | 428 { |
| 430 return toV8(impl, creationContext, isolate); | 429 return toV8(impl, creationContext, isolate); |
| 431 } | 430 } |
| 432 | 431 |
| 433 } // namespace WebCore | 432 } // namespace WebCore |
| OLD | NEW |