| 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 25 matching lines...) Expand all Loading... |
| 36 #pragma clang diagnostic pop | 36 #pragma clang diagnostic pop |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestCallback
Functions.h. | 39 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestCallback
Functions.h. |
| 40 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 40 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 41 // bindings/core/v8/ScriptWrappable.h. | 41 // bindings/core/v8/ScriptWrappable.h. |
| 42 const WrapperTypeInfo& TestCallbackFunctions::s_wrapperTypeInfo = V8TestCallback
Functions::wrapperTypeInfo; | 42 const WrapperTypeInfo& TestCallbackFunctions::s_wrapperTypeInfo = V8TestCallback
Functions::wrapperTypeInfo; |
| 43 | 43 |
| 44 // not [ActiveScriptWrappable] | 44 // not [ActiveScriptWrappable] |
| 45 static_assert( | 45 static_assert( |
| 46 !std::is_base_of<ActiveScriptWrappable, TestCallbackFunctions>::value, | 46 !std::is_base_of<ActiveScriptWrappableBase, TestCallbackFunctions>::value, |
| 47 "TestCallbackFunctions inherits from ActiveScriptWrappable, but is not speci
fying " | 47 "TestCallbackFunctions inherits from ActiveScriptWrappable<>, but is not spe
cifying " |
| 48 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 48 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 49 "Be consistent."); | 49 "Be consistent."); |
| 50 static_assert( | 50 static_assert( |
| 51 std::is_same<decltype(&TestCallbackFunctions::hasPendingActivity), | 51 std::is_same<decltype(&TestCallbackFunctions::hasPendingActivity), |
| 52 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 52 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
| 53 "TestCallbackFunctions is overriding hasPendingActivity(), but is not specif
ying " | 53 "TestCallbackFunctions is overriding hasPendingActivity(), but is not specif
ying " |
| 54 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 54 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| 55 "Be consistent."); | 55 "Be consistent."); |
| 56 | 56 |
| 57 namespace TestCallbackFunctionsV8Internal { | 57 namespace TestCallbackFunctionsV8Internal { |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 v8::Local<v8::Object> V8TestCallbackFunctions::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) { | 321 v8::Local<v8::Object> V8TestCallbackFunctions::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) { |
| 322 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 322 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
| 323 } | 323 } |
| 324 | 324 |
| 325 TestCallbackFunctions* V8TestCallbackFunctions::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { | 325 TestCallbackFunctions* V8TestCallbackFunctions::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { |
| 326 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 326 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace blink | 329 } // namespace blink |
| OLD | NEW |