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 "V8ArrayBufferView.h" | 7 #include "V8ArrayBufferView.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/V8ArrayBuffer.h" | 10 #include "bindings/core/v8/V8ArrayBuffer.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "wtf/RefPtr.h" | 27 #include "wtf/RefPtr.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 31 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
32 // and does not depend on another global objects. | 32 // and does not depend on another global objects. |
33 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 33 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
34 #pragma clang diagnostic push | 34 #pragma clang diagnostic push |
35 #pragma clang diagnostic ignored "-Wglobal-constructors" | 35 #pragma clang diagnostic ignored "-Wglobal-constructors" |
36 #endif | 36 #endif |
37 const WrapperTypeInfo V8ArrayBufferView::wrapperTypeInfo = { gin::kEmbedderBlink
, 0, V8ArrayBufferView::refObject, V8ArrayBufferView::derefObject, V8ArrayBuffer
View::trace, 0, 0, V8ArrayBufferView::preparePrototypeAndInterfaceObject, V8Arra
yBufferView::installConditionallyEnabledProperties, "ArrayBufferView", 0, Wrappe
rTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTy
peInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo
::RefCountedObject }; | 37 const WrapperTypeInfo V8ArrayBufferView::wrapperTypeInfo = { gin::kEmbedderBlink
, 0, V8ArrayBufferView::refObject, V8ArrayBufferView::derefObject, V8ArrayBuffer
View::trace, 0, 0, V8ArrayBufferView::preparePrototypeAndInterfaceObject, V8Arra
yBufferView::installConditionallyEnabledProperties, "ArrayBufferView", 0, Wrappe
rTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTy
peInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo
::GarbageCollectedObject }; |
38 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 38 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
39 #pragma clang diagnostic pop | 39 #pragma clang diagnostic pop |
40 #endif | 40 #endif |
41 | 41 |
42 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf
ferView.h. | 42 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf
ferView.h. |
43 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 43 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
44 // bindings/core/v8/ScriptWrappable.h. | 44 // bindings/core/v8/ScriptWrappable.h. |
45 const WrapperTypeInfo& TestArrayBufferView::s_wrapperTypeInfo = V8ArrayBufferVie
w::wrapperTypeInfo; | 45 const WrapperTypeInfo& TestArrayBufferView::s_wrapperTypeInfo = V8ArrayBufferVie
w::wrapperTypeInfo; |
46 | 46 |
47 bool V8ArrayBufferView::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* i
solate) | 47 bool V8ArrayBufferView::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* i
solate) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 return 0; | 81 return 0; |
82 } | 82 } |
83 | 83 |
84 TestArrayBufferView* V8ArrayBufferView::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) | 84 TestArrayBufferView* V8ArrayBufferView::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) |
85 { | 85 { |
86 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 86 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
87 } | 87 } |
88 | 88 |
89 void V8ArrayBufferView::refObject(ScriptWrappable* scriptWrappable) | 89 void V8ArrayBufferView::refObject(ScriptWrappable* scriptWrappable) |
90 { | 90 { |
91 scriptWrappable->toImpl<TestArrayBufferView>()->ref(); | |
92 } | 91 } |
93 | 92 |
94 void V8ArrayBufferView::derefObject(ScriptWrappable* scriptWrappable) | 93 void V8ArrayBufferView::derefObject(ScriptWrappable* scriptWrappable) |
95 { | 94 { |
96 scriptWrappable->toImpl<TestArrayBufferView>()->deref(); | |
97 } | 95 } |
98 | 96 |
99 } // namespace blink | 97 } // namespace blink |
OLD | NEW |