| 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 22 matching lines...) Expand all Loading... |
| 33 #pragma clang diagnostic pop | 33 #pragma clang diagnostic pop |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eNamedConstructor2.h. | 36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eNamedConstructor2.h. |
| 37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 38 // bindings/core/v8/ScriptWrappable.h. | 38 // bindings/core/v8/ScriptWrappable.h. |
| 39 const WrapperTypeInfo& TestInterfaceNamedConstructor2::s_wrapperTypeInfo = V8Tes
tInterfaceNamedConstructor2::wrapperTypeInfo; | 39 const WrapperTypeInfo& TestInterfaceNamedConstructor2::s_wrapperTypeInfo = V8Tes
tInterfaceNamedConstructor2::wrapperTypeInfo; |
| 40 | 40 |
| 41 // not [ActiveScriptWrappable] | 41 // not [ActiveScriptWrappable] |
| 42 static_assert( | 42 static_assert( |
| 43 !std::is_base_of<ActiveScriptWrappable, TestInterfaceNamedConstructor2>::val
ue, | 43 !std::is_base_of<ActiveScriptWrappableBase, TestInterfaceNamedConstructor2>:
:value, |
| 44 "TestInterfaceNamedConstructor2 inherits from ActiveScriptWrappable, but is
not specifying " | 44 "TestInterfaceNamedConstructor2 inherits from ActiveScriptWrappable<>, but i
s not specifying " |
| 45 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 45 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 46 "Be consistent."); | 46 "Be consistent."); |
| 47 static_assert( | 47 static_assert( |
| 48 std::is_same<decltype(&TestInterfaceNamedConstructor2::hasPendingActivity), | 48 std::is_same<decltype(&TestInterfaceNamedConstructor2::hasPendingActivity), |
| 49 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 49 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
| 50 "TestInterfaceNamedConstructor2 is overriding hasPendingActivity(), but is n
ot specifying " | 50 "TestInterfaceNamedConstructor2 is overriding hasPendingActivity(), but is n
ot specifying " |
| 51 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 51 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 52 "Be consistent."); | 52 "Be consistent."); |
| 53 | 53 |
| 54 namespace TestInterfaceNamedConstructor2V8Internal { | 54 namespace TestInterfaceNamedConstructor2V8Internal { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 v8::Local<v8::Object> V8TestInterfaceNamedConstructor2::findInstanceInPrototypeC
hain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { | 133 v8::Local<v8::Object> V8TestInterfaceNamedConstructor2::findInstanceInPrototypeC
hain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { |
| 134 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 134 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
| 135 } | 135 } |
| 136 | 136 |
| 137 TestInterfaceNamedConstructor2* V8TestInterfaceNamedConstructor2::toImplWithType
Check(v8::Isolate* isolate, v8::Local<v8::Value> value) { | 137 TestInterfaceNamedConstructor2* V8TestInterfaceNamedConstructor2::toImplWithType
Check(v8::Isolate* isolate, v8::Local<v8::Value> value) { |
| 138 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 138 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |