| 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 24 matching lines...) Expand all Loading... |
| 35 #pragma clang diagnostic pop | 35 #pragma clang diagnostic pop |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eCheckSecurity.h. | 38 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eCheckSecurity.h. |
| 39 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 39 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 40 // bindings/core/v8/ScriptWrappable.h. | 40 // bindings/core/v8/ScriptWrappable.h. |
| 41 const WrapperTypeInfo& TestInterfaceCheckSecurity::s_wrapperTypeInfo = V8TestInt
erfaceCheckSecurity::wrapperTypeInfo; | 41 const WrapperTypeInfo& TestInterfaceCheckSecurity::s_wrapperTypeInfo = V8TestInt
erfaceCheckSecurity::wrapperTypeInfo; |
| 42 | 42 |
| 43 // not [ActiveScriptWrappable] | 43 // not [ActiveScriptWrappable] |
| 44 static_assert( | 44 static_assert( |
| 45 !std::is_base_of<ActiveScriptWrappable, TestInterfaceCheckSecurity>::value, | 45 !std::is_base_of<ActiveScriptWrappableBase, TestInterfaceCheckSecurity>::val
ue, |
| 46 "TestInterfaceCheckSecurity inherits from ActiveScriptWrappable, but is not
specifying " | 46 "TestInterfaceCheckSecurity inherits from ActiveScriptWrappable<>, but is no
t specifying " |
| 47 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 47 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 48 "Be consistent."); | 48 "Be consistent."); |
| 49 static_assert( | 49 static_assert( |
| 50 std::is_same<decltype(&TestInterfaceCheckSecurity::hasPendingActivity), | 50 std::is_same<decltype(&TestInterfaceCheckSecurity::hasPendingActivity), |
| 51 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 51 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
| 52 "TestInterfaceCheckSecurity is overriding hasPendingActivity(), but is not s
pecifying " | 52 "TestInterfaceCheckSecurity is overriding hasPendingActivity(), but is not s
pecifying " |
| 53 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 53 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 54 "Be consistent."); | 54 "Be consistent."); |
| 55 | 55 |
| 56 namespace TestInterfaceCheckSecurityV8Internal { | 56 namespace TestInterfaceCheckSecurityV8Internal { |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 | 519 |
| 520 v8::Local<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChain
(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { | 520 v8::Local<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChain
(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { |
| 521 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 521 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
| 522 } | 522 } |
| 523 | 523 |
| 524 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toImplWithTypeCheck(v8
::Isolate* isolate, v8::Local<v8::Value> value) { | 524 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toImplWithTypeCheck(v8
::Isolate* isolate, v8::Local<v8::Value> value) { |
| 525 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 525 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 526 } | 526 } |
| 527 | 527 |
| 528 } // namespace blink | 528 } // namespace blink |
| OLD | NEW |