| 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 // clang-format off | 7 // clang-format off |
| 8 #ifndef V8TestInterface5_h | 8 #ifndef V8TestInterface5_h |
| 9 #define V8TestInterface5_h | 9 #define V8TestInterface5_h |
| 10 | 10 |
| 11 #include "bindings/core/v8/DoubleOrString.h" | 11 #include "bindings/core/v8/DoubleOrString.h" |
| 12 #include "bindings/core/v8/ScriptWrappable.h" | 12 #include "bindings/core/v8/ScriptWrappable.h" |
| 13 #include "bindings/core/v8/ToV8.h" | 13 #include "bindings/core/v8/ToV8.h" |
| 14 #include "bindings/core/v8/V8Binding.h" | 14 #include "bindings/core/v8/V8Binding.h" |
| 15 #include "bindings/core/v8/V8DOMWrapper.h" | 15 #include "bindings/core/v8/V8DOMWrapper.h" |
| 16 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 16 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
| 17 #include "bindings/core/v8/WrapperTypeInfo.h" | 17 #include "bindings/core/v8/WrapperTypeInfo.h" |
| 18 #include "bindings/modules/v8/BooleanOrString.h" | 18 #include "bindings/modules/v8/BooleanOrString.h" |
| 19 #include "bindings/tests/idls/modules/TestInterface5Implementation.h" | 19 #include "bindings/tests/idls/modules/TestInterface5Implementation.h" |
| 20 #include "modules/ModulesExport.h" | 20 #include "modules/ModulesExport.h" |
| 21 #include "platform/heap/Handle.h" | 21 #include "platform/heap/Handle.h" |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 class V8TestInterface5 { | 25 class V8TestInterface5 { |
| 26 STATIC_ONLY(V8TestInterface5); | 26 STATIC_ONLY(V8TestInterface5); |
| 27 public: | 27 public: |
| 28 MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 28 MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
| 29 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu
e>, v8::Isolate*); | 29 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); |
| 30 MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolat
e*, const DOMWrapperWorld&); | 30 MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*
, const DOMWrapperWorld&); |
| 31 static TestInterface5Implementation* toImpl(v8::Local<v8::Object> object) | 31 static TestInterface5Implementation* toImpl(v8::Local<v8::Object> object) { |
| 32 { | 32 return toScriptWrappable(object)->toImpl<TestInterface5Implementation>(); |
| 33 return toScriptWrappable(object)->toImpl<TestInterface5Implementation>()
; | 33 } |
| 34 } | 34 MODULES_EXPORT static TestInterface5Implementation* toImplWithTypeCheck(v8::Is
olate*, v8::Local<v8::Value>); |
| 35 MODULES_EXPORT static TestInterface5Implementation* toImplWithTypeCheck(v8::
Isolate*, v8::Local<v8::Value>); | 35 MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
| 36 MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo; | 36 template<typename VisitorDispatcher> |
| 37 template<typename VisitorDispatcher> | 37 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{ |
| 38 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappabl
e) | 38 visitor->trace(scriptWrappable->toImpl<TestInterface5Implementation>()); |
| 39 { | 39 } |
| 40 visitor->trace(scriptWrappable->toImpl<TestInterface5Implementation>()); | 40 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { |
| 41 } | 41 visitor->traceWrappers(scriptWrappable->toImpl<TestInterface5Implementation>
()); |
| 42 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWr
appable) | 42 } |
| 43 { | 43 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persiste
nt<v8::Object>&); |
| 44 visitor->traceWrappers(scriptWrappable->toImpl<TestInterface5Implementat
ion>()); | 44 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
| 45 } | 45 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
| 46 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis
tent<v8::Object>&); | 46 MODULES_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8::Co
ntext>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local
<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplat
e); |
| 47 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); | |
| 48 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | |
| 49 MODULES_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8::
Context>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Loc
al<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTempl
ate); | |
| 50 }; | 47 }; |
| 51 | 48 |
| 52 template <> | 49 template <> |
| 53 struct V8TypeOf<TestInterface5Implementation> { | 50 struct V8TypeOf<TestInterface5Implementation> { |
| 54 typedef V8TestInterface5 Type; | 51 typedef V8TestInterface5 Type; |
| 55 }; | 52 }; |
| 56 | 53 |
| 57 } // namespace blink | 54 } // namespace blink |
| 58 | 55 |
| 59 #endif // V8TestInterface5_h | 56 #endif // V8TestInterface5_h |
| OLD | NEW |