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 26 matching lines...) Expand all Loading... |
37 #pragma clang diagnostic pop | 37 #pragma clang diagnostic pop |
38 #endif | 38 #endif |
39 | 39 |
40 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eNode.h. | 40 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eNode.h. |
41 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 41 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
42 // bindings/core/v8/ScriptWrappable.h. | 42 // bindings/core/v8/ScriptWrappable.h. |
43 const WrapperTypeInfo& TestInterfaceNode::s_wrapperTypeInfo = V8TestInterfaceNod
e::wrapperTypeInfo; | 43 const WrapperTypeInfo& TestInterfaceNode::s_wrapperTypeInfo = V8TestInterfaceNod
e::wrapperTypeInfo; |
44 | 44 |
45 // not [ActiveScriptWrappable] | 45 // not [ActiveScriptWrappable] |
46 static_assert( | 46 static_assert( |
47 !std::is_base_of<ActiveScriptWrappable, TestInterfaceNode>::value, | 47 !std::is_base_of<ActiveScriptWrappableBase, TestInterfaceNode>::value, |
48 "TestInterfaceNode inherits from ActiveScriptWrappable, but is not specifyin
g " | 48 "TestInterfaceNode inherits from ActiveScriptWrappable<>, but is not specify
ing " |
49 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 49 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
50 "Be consistent."); | 50 "Be consistent."); |
51 static_assert( | 51 static_assert( |
52 std::is_same<decltype(&TestInterfaceNode::hasPendingActivity), | 52 std::is_same<decltype(&TestInterfaceNode::hasPendingActivity), |
53 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 53 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
54 "TestInterfaceNode is overriding hasPendingActivity(), but is not specifying
" | 54 "TestInterfaceNode is overriding hasPendingActivity(), but is not specifying
" |
55 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 55 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
56 "Be consistent."); | 56 "Be consistent."); |
57 | 57 |
58 namespace TestInterfaceNodeV8Internal { | 58 namespace TestInterfaceNodeV8Internal { |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 v8::Local<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Loca
l<v8::Value> v8Value, v8::Isolate* isolate) { | 374 v8::Local<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Loca
l<v8::Value> v8Value, v8::Isolate* isolate) { |
375 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 375 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
376 } | 376 } |
377 | 377 |
378 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { | 378 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { |
379 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 379 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
380 } | 380 } |
381 | 381 |
382 } // namespace blink | 382 } // namespace blink |
OLD | NEW |