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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #pragma clang diagnostic pop | 45 #pragma clang diagnostic pop |
46 #endif | 46 #endif |
47 | 47 |
48 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf
ferView.h. | 48 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf
ferView.h. |
49 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 49 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
50 // bindings/core/v8/ScriptWrappable.h. | 50 // bindings/core/v8/ScriptWrappable.h. |
51 const WrapperTypeInfo& TestArrayBufferView::s_wrapperTypeInfo = V8ArrayBufferVie
w::wrapperTypeInfo; | 51 const WrapperTypeInfo& TestArrayBufferView::s_wrapperTypeInfo = V8ArrayBufferVie
w::wrapperTypeInfo; |
52 | 52 |
53 // not [ActiveScriptWrappable] | 53 // not [ActiveScriptWrappable] |
54 static_assert( | 54 static_assert( |
55 !std::is_base_of<ActiveScriptWrappable, TestArrayBufferView>::value, | 55 !std::is_base_of<ActiveScriptWrappableBase, TestArrayBufferView>::value, |
56 "TestArrayBufferView inherits from ActiveScriptWrappable, but is not specify
ing " | 56 "TestArrayBufferView inherits from ActiveScriptWrappable<>, but is not speci
fying " |
57 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 57 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
58 "Be consistent."); | 58 "Be consistent."); |
59 static_assert( | 59 static_assert( |
60 std::is_same<decltype(&TestArrayBufferView::hasPendingActivity), | 60 std::is_same<decltype(&TestArrayBufferView::hasPendingActivity), |
61 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 61 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
62 "TestArrayBufferView is overriding hasPendingActivity(), but is not specifyi
ng " | 62 "TestArrayBufferView is overriding hasPendingActivity(), but is not specifyi
ng " |
63 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 63 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
64 "Be consistent."); | 64 "Be consistent."); |
65 | 65 |
66 TestArrayBufferView* V8ArrayBufferView::toImpl(v8::Local<v8::Object> object) { | 66 TestArrayBufferView* V8ArrayBufferView::toImpl(v8::Local<v8::Object> object) { |
(...skipping 25 matching lines...) Expand all Loading... |
92 | 92 |
93 NOTREACHED(); | 93 NOTREACHED(); |
94 return 0; | 94 return 0; |
95 } | 95 } |
96 | 96 |
97 TestArrayBufferView* V8ArrayBufferView::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { | 97 TestArrayBufferView* V8ArrayBufferView::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { |
98 return value->IsArrayBufferView() ? toImpl(v8::Local<v8::Object>::Cast(value))
: nullptr; | 98 return value->IsArrayBufferView() ? toImpl(v8::Local<v8::Object>::Cast(value))
: nullptr; |
99 } | 99 } |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
OLD | NEW |