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 23 matching lines...) Expand all Loading... |
34 #pragma clang diagnostic pop | 34 #pragma clang diagnostic pop |
35 #endif | 35 #endif |
36 | 36 |
37 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf
fer.h. | 37 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf
fer.h. |
38 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 38 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
39 // bindings/core/v8/ScriptWrappable.h. | 39 // bindings/core/v8/ScriptWrappable.h. |
40 const WrapperTypeInfo& TestArrayBuffer::s_wrapperTypeInfo = V8ArrayBuffer::wrapp
erTypeInfo; | 40 const WrapperTypeInfo& TestArrayBuffer::s_wrapperTypeInfo = V8ArrayBuffer::wrapp
erTypeInfo; |
41 | 41 |
42 // not [ActiveScriptWrappable] | 42 // not [ActiveScriptWrappable] |
43 static_assert( | 43 static_assert( |
44 !std::is_base_of<ActiveScriptWrappable, TestArrayBuffer>::value, | 44 !std::is_base_of<ActiveScriptWrappableBase, TestArrayBuffer>::value, |
45 "TestArrayBuffer inherits from ActiveScriptWrappable, but is not specifying
" | 45 "TestArrayBuffer inherits from ActiveScriptWrappable<>, but is not specifyin
g " |
46 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 46 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
47 "Be consistent."); | 47 "Be consistent."); |
48 static_assert( | 48 static_assert( |
49 std::is_same<decltype(&TestArrayBuffer::hasPendingActivity), | 49 std::is_same<decltype(&TestArrayBuffer::hasPendingActivity), |
50 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 50 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
51 "TestArrayBuffer is overriding hasPendingActivity(), but is not specifying " | 51 "TestArrayBuffer is overriding hasPendingActivity(), but is not specifying " |
52 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 52 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
53 "Be consistent."); | 53 "Be consistent."); |
54 | 54 |
55 TestArrayBuffer* V8ArrayBuffer::toImpl(v8::Local<v8::Object> object) { | 55 TestArrayBuffer* V8ArrayBuffer::toImpl(v8::Local<v8::Object> object) { |
(...skipping 15 matching lines...) Expand all Loading... |
71 DCHECK(associatedWrapper == object); | 71 DCHECK(associatedWrapper == object); |
72 | 72 |
73 return buffer; | 73 return buffer; |
74 } | 74 } |
75 | 75 |
76 TestArrayBuffer* V8ArrayBuffer::toImplWithTypeCheck(v8::Isolate* isolate, v8::Lo
cal<v8::Value> value) { | 76 TestArrayBuffer* V8ArrayBuffer::toImplWithTypeCheck(v8::Isolate* isolate, v8::Lo
cal<v8::Value> value) { |
77 return value->IsArrayBuffer() ? toImpl(v8::Local<v8::Object>::Cast(value)) : n
ullptr; | 77 return value->IsArrayBuffer() ? toImpl(v8::Local<v8::Object>::Cast(value)) : n
ullptr; |
78 } | 78 } |
79 | 79 |
80 } // namespace blink | 80 } // namespace blink |
OLD | NEW |