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" |
11 #include "bindings/core/v8/ExceptionState.h" | 11 #include "bindings/core/v8/ExceptionState.h" |
12 #include "bindings/core/v8/ScriptValue.h" | 12 #include "bindings/core/v8/ScriptValue.h" |
13 #include "bindings/core/v8/SerializedScriptValue.h" | 13 #include "bindings/core/v8/SerializedScriptValue.h" |
14 #include "bindings/core/v8/V8DOMConfiguration.h" | 14 #include "bindings/core/v8/V8DOMConfiguration.h" |
15 #include "bindings/core/v8/V8HiddenValue.h" | 15 #include "bindings/core/v8/V8HiddenValue.h" |
16 #include "bindings/core/v8/V8ObjectConstructor.h" | 16 #include "bindings/core/v8/V8ObjectConstructor.h" |
17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
18 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" | 18 #include "bindings/core/v8/V8Uint8Array.h" |
19 #include "core/dom/ContextFeatures.h" | 19 #include "core/dom/ContextFeatures.h" |
20 #include "core/dom/Document.h" | 20 #include "core/dom/Document.h" |
21 #include "core/frame/LocalDOMWindow.h" | 21 #include "core/frame/LocalDOMWindow.h" |
22 #include "core/frame/UseCounter.h" | 22 #include "core/frame/UseCounter.h" |
23 #include "platform/RuntimeEnabledFeatures.h" | 23 #include "platform/RuntimeEnabledFeatures.h" |
24 #include "platform/TraceEvent.h" | 24 #include "platform/TraceEvent.h" |
25 #include "wtf/GetPtr.h" | 25 #include "wtf/GetPtr.h" |
26 #include "wtf/RefPtr.h" | 26 #include "wtf/RefPtr.h" |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 { | 103 { |
104 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 104 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
105 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); | 105 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyLongAttributeAttributeGetter(info); |
106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
107 } | 107 } |
108 | 108 |
109 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) | 109 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
ter(const v8::PropertyCallbackInfo<v8::Value>& info) |
110 { | 110 { |
111 v8::Handle<v8::Object> holder = info.Holder(); | 111 v8::Handle<v8::Object> holder = info.Holder(); |
112 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 112 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
113 RefPtr<Uint8Array> cppValue(impl->initializedByEventConstructorReadonlyUint8
ArrayAttribute()); | 113 RefPtr<DOMUint8Array> cppValue(impl->initializedByEventConstructorReadonlyUi
nt8ArrayAttribute()); |
114 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.G
etReturnValue(), cppValue.get())) | 114 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.G
etReturnValue(), cppValue.get())) |
115 return; | 115 return; |
116 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate
()); | 116 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate
()); |
117 if (!wrapper.IsEmpty()) { | 117 if (!wrapper.IsEmpty()) { |
118 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"),
wrapper); | 118 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"),
wrapper); |
119 v8SetReturnValue(info, wrapper); | 119 v8SetReturnValue(info, wrapper); |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) | 123 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet
terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in
fo) |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 366 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
367 { | 367 { |
368 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 368 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
369 } | 369 } |
370 | 370 |
371 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 371 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toImplWithTypeCh
eck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
372 { | 372 { |
373 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceEventConstructor>() : 0; | 373 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterfaceEventConstructor>() : 0; |
374 } | 374 } |
375 | 375 |
376 | |
377 void V8TestInterfaceEventConstructor::refObject(ScriptWrappableBase* internalPoi
nter) | 376 void V8TestInterfaceEventConstructor::refObject(ScriptWrappableBase* internalPoi
nter) |
378 { | 377 { |
379 #if !ENABLE(OILPAN) | 378 #if !ENABLE(OILPAN) |
380 internalPointer->toImpl<TestInterfaceEventConstructor>()->ref(); | 379 internalPointer->toImpl<TestInterfaceEventConstructor>()->ref(); |
381 #endif | 380 #endif |
382 } | 381 } |
383 | 382 |
384 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappableBase* internalP
ointer) | 383 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappableBase* internalP
ointer) |
385 { | 384 { |
386 #if !ENABLE(OILPAN) | 385 #if !ENABLE(OILPAN) |
387 internalPointer->toImpl<TestInterfaceEventConstructor>()->deref(); | 386 internalPointer->toImpl<TestInterfaceEventConstructor>()->deref(); |
388 #endif | 387 #endif |
389 } | 388 } |
390 | 389 |
391 template<> | 390 template<> |
392 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 391 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
393 { | 392 { |
394 return toV8(impl, creationContext, isolate); | 393 return toV8(impl, creationContext, isolate); |
395 } | 394 } |
396 | 395 |
397 } // namespace blink | 396 } // namespace blink |
OLD | NEW |