| 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 27 matching lines...) Expand all Loading... |
| 38 #pragma clang diagnostic pop | 38 #pragma clang diagnostic pop |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e3.h. | 41 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e3.h. |
| 42 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 42 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 43 // bindings/core/v8/ScriptWrappable.h. | 43 // bindings/core/v8/ScriptWrappable.h. |
| 44 const WrapperTypeInfo& TestInterface3::s_wrapperTypeInfo = V8TestInterface3::wra
pperTypeInfo; | 44 const WrapperTypeInfo& TestInterface3::s_wrapperTypeInfo = V8TestInterface3::wra
pperTypeInfo; |
| 45 | 45 |
| 46 // not [ActiveScriptWrappable] | 46 // not [ActiveScriptWrappable] |
| 47 static_assert( | 47 static_assert( |
| 48 !std::is_base_of<ActiveScriptWrappable, TestInterface3>::value, | 48 !std::is_base_of<ActiveScriptWrappableBase, TestInterface3>::value, |
| 49 "TestInterface3 inherits from ActiveScriptWrappable, but is not specifying " | 49 "TestInterface3 inherits from ActiveScriptWrappable<>, but is not specifying
" |
| 50 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 50 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 51 "Be consistent."); | 51 "Be consistent."); |
| 52 static_assert( | 52 static_assert( |
| 53 std::is_same<decltype(&TestInterface3::hasPendingActivity), | 53 std::is_same<decltype(&TestInterface3::hasPendingActivity), |
| 54 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 54 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
| 55 "TestInterface3 is overriding hasPendingActivity(), but is not specifying " | 55 "TestInterface3 is overriding hasPendingActivity(), but is not specifying " |
| 56 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 56 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 57 "Be consistent."); | 57 "Be consistent."); |
| 58 | 58 |
| 59 namespace TestInterface3V8Internal { | 59 namespace TestInterface3V8Internal { |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 v8::Local<v8::Object> V8TestInterface3::findInstanceInPrototypeChain(v8::Local<v
8::Value> v8Value, v8::Isolate* isolate) { | 327 v8::Local<v8::Object> V8TestInterface3::findInstanceInPrototypeChain(v8::Local<v
8::Value> v8Value, v8::Isolate* isolate) { |
| 328 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 328 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
| 329 } | 329 } |
| 330 | 330 |
| 331 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Local<v8::Value> value) { | 331 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8::
Local<v8::Value> value) { |
| 332 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 332 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 333 } | 333 } |
| 334 | 334 |
| 335 } // namespace blink | 335 } // namespace blink |
| OLD | NEW |