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. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 #pragma clang diagnostic push | 29 #pragma clang diagnostic push |
30 #pragma clang diagnostic ignored "-Wglobal-constructors" | 30 #pragma clang diagnostic ignored "-Wglobal-constructors" |
31 #endif | 31 #endif |
32 const WrapperTypeInfo V8Uint8ClampedArray::wrapperTypeInfo = { gin::kEmbedderBli
nk, 0, V8Uint8ClampedArray::trace, V8Uint8ClampedArray::traceWrappers, 0, nullpt
r, "Uint8ClampedArray", &V8ArrayBufferView::wrapperTypeInfo, WrapperTypeInfo::Wr
apperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotIn
heritFromActiveScriptWrappable, WrapperTypeInfo::NotInheritFromEventTarget, Wrap
perTypeInfo::Independent }; | 32 const WrapperTypeInfo V8Uint8ClampedArray::wrapperTypeInfo = { gin::kEmbedderBli
nk, 0, V8Uint8ClampedArray::trace, V8Uint8ClampedArray::traceWrappers, 0, nullpt
r, "Uint8ClampedArray", &V8ArrayBufferView::wrapperTypeInfo, WrapperTypeInfo::Wr
apperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotIn
heritFromActiveScriptWrappable, WrapperTypeInfo::NotInheritFromEventTarget, Wrap
perTypeInfo::Independent }; |
33 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 33 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
34 #pragma clang diagnostic pop | 34 #pragma clang diagnostic pop |
35 #endif | 35 #endif |
36 | 36 |
37 // not [ActiveScriptWrappable] | 37 // not [ActiveScriptWrappable] |
38 static_assert( | 38 static_assert( |
39 !std::is_base_of<ActiveScriptWrappable, TestUint8ClampedArray>::value, | 39 !std::is_base_of<ActiveScriptWrappableBase, TestUint8ClampedArray>::value, |
40 "TestUint8ClampedArray inherits from ActiveScriptWrappable, but is not speci
fying " | 40 "TestUint8ClampedArray inherits from ActiveScriptWrappable<>, but is not spe
cifying " |
41 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 41 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
42 "Be consistent."); | 42 "Be consistent."); |
43 static_assert( | 43 static_assert( |
44 std::is_same<decltype(&TestUint8ClampedArray::hasPendingActivity), | 44 std::is_same<decltype(&TestUint8ClampedArray::hasPendingActivity), |
45 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 45 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
46 "TestUint8ClampedArray is overriding hasPendingActivity(), but is not specif
ying " | 46 "TestUint8ClampedArray is overriding hasPendingActivity(), but is not specif
ying " |
47 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 47 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
48 "Be consistent."); | 48 "Be consistent."); |
49 | 49 |
50 TestUint8ClampedArray* V8Uint8ClampedArray::toImpl(v8::Local<v8::Object> object)
{ | 50 TestUint8ClampedArray* V8Uint8ClampedArray::toImpl(v8::Local<v8::Object> object)
{ |
(...skipping 16 matching lines...) Expand all Loading... |
67 DCHECK(associatedWrapper == object); | 67 DCHECK(associatedWrapper == object); |
68 | 68 |
69 return typedArray->toImpl<TestUint8ClampedArray>(); | 69 return typedArray->toImpl<TestUint8ClampedArray>(); |
70 } | 70 } |
71 | 71 |
72 TestUint8ClampedArray* V8Uint8ClampedArray::toImplWithTypeCheck(v8::Isolate* iso
late, v8::Local<v8::Value> value) { | 72 TestUint8ClampedArray* V8Uint8ClampedArray::toImplWithTypeCheck(v8::Isolate* iso
late, v8::Local<v8::Value> value) { |
73 return value->IsUint8ClampedArray() ? toImpl(v8::Local<v8::Object>::Cast(value
)) : nullptr; | 73 return value->IsUint8ClampedArray() ? toImpl(v8::Local<v8::Object>::Cast(value
)) : nullptr; |
74 } | 74 } |
75 | 75 |
76 } // namespace blink | 76 } // namespace blink |
OLD | NEW |