| 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. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "V8TestSpecialOperations.h" | 7 #include "V8TestSpecialOperations.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/UnionTypesCore.h" | 10 #include "bindings/core/v8/UnionTypesCore.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "wtf/RefPtr.h" | 21 #include "wtf/RefPtr.h" |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 25 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 26 // and does not depend on another global objects. | 26 // and does not depend on another global objects. |
| 27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 27 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 28 #pragma clang diagnostic push | 28 #pragma clang diagnostic push |
| 29 #pragma clang diagnostic ignored "-Wglobal-constructors" | 29 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 30 #endif | 30 #endif |
| 31 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::refObject
, V8TestSpecialOperations::derefObject, V8TestSpecialOperations::trace, 0, 0, V8
TestSpecialOperations::preparePrototypeAndInterfaceObject, V8TestSpecialOperatio
ns::installConditionallyEnabledProperties, "TestSpecialOperations", 0, WrapperTy
peInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeI
nfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::R
efCountedObject }; | 31 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::trace, 0,
0, V8TestSpecialOperations::preparePrototypeAndInterfaceObject, V8TestSpecialOp
erations::installConditionallyEnabledProperties, "TestSpecialOperations", 0, Wra
pperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, Wrappe
rTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent }; |
| 32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 32 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 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 TestSpecialO
perations.h. | 36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestSpecialO
perations.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& TestSpecialOperations::s_wrapperTypeInfo = V8TestSpecialO
perations::wrapperTypeInfo; | 39 const WrapperTypeInfo& TestSpecialOperations::s_wrapperTypeInfo = V8TestSpecialO
perations::wrapperTypeInfo; |
| 40 | 40 |
| 41 namespace TestSpecialOperationsV8Internal { | 41 namespace TestSpecialOperationsV8Internal { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 v8::Local<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) | 180 v8::Local<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) |
| 181 { | 181 { |
| 182 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 182 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 183 } | 183 } |
| 184 | 184 |
| 185 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) | 185 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) |
| 186 { | 186 { |
| 187 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 187 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
| 188 } | 188 } |
| 189 | 189 |
| 190 void V8TestSpecialOperations::refObject(ScriptWrappable* scriptWrappable) | |
| 191 { | |
| 192 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); | |
| 193 } | |
| 194 | |
| 195 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) | |
| 196 { | |
| 197 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); | |
| 198 } | |
| 199 | |
| 200 } // namespace blink | 190 } // namespace blink |
| OLD | NEW |