| 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 #ifndef V8TestInterfaceWillBeGarbageCollected_h | 7 #ifndef V8TestInterfaceWillBeGarbageCollected_h |
| 8 #define V8TestInterfaceWillBeGarbageCollected_h | 8 #define V8TestInterfaceWillBeGarbageCollected_h |
| 9 | 9 |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| 11 #include "bindings/core/v8/ToV8.h" | 11 #include "bindings/core/v8/ToV8.h" |
| 12 #include "bindings/core/v8/V8Binding.h" | 12 #include "bindings/core/v8/V8Binding.h" |
| 13 #include "bindings/core/v8/V8DOMWrapper.h" | 13 #include "bindings/core/v8/V8DOMWrapper.h" |
| 14 #include "bindings/core/v8/V8EventTarget.h" | 14 #include "bindings/core/v8/V8EventTarget.h" |
| 15 #include "bindings/core/v8/WrapperTypeInfo.h" | 15 #include "bindings/core/v8/WrapperTypeInfo.h" |
| 16 #include "bindings/tests/idls/core/TestInterfaceWillBeGarbageCollected.h" | 16 #include "bindings/tests/idls/core/TestInterfaceWillBeGarbageCollected.h" |
| 17 #include "core/CoreExport.h" | 17 #include "core/CoreExport.h" |
| 18 #include "platform/heap/Handle.h" | 18 #include "platform/heap/Handle.h" |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class V8TestInterfaceWillBeGarbageCollectedConstructor { | 22 class V8TestInterfaceWillBeGarbageCollectedConstructor { |
| 23 STATIC_ONLY(V8TestInterfaceWillBeGarbageCollectedConstructor); |
| 23 public: | 24 public: |
| 24 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 25 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
| 25 static const WrapperTypeInfo wrapperTypeInfo; | 26 static const WrapperTypeInfo wrapperTypeInfo; |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 class V8TestInterfaceWillBeGarbageCollected { | 29 class V8TestInterfaceWillBeGarbageCollected { |
| 30 STATIC_ONLY(V8TestInterfaceWillBeGarbageCollected); |
| 29 public: | 31 public: |
| 30 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 32 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
| 31 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu
e>, v8::Isolate*); | 33 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu
e>, v8::Isolate*); |
| 32 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*)
; | 34 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*)
; |
| 33 static TestInterfaceWillBeGarbageCollected* toImpl(v8::Local<v8::Object> obj
ect) | 35 static TestInterfaceWillBeGarbageCollected* toImpl(v8::Local<v8::Object> obj
ect) |
| 34 { | 36 { |
| 35 return toScriptWrappable(object)->toImpl<TestInterfaceWillBeGarbageColle
cted>(); | 37 return toScriptWrappable(object)->toImpl<TestInterfaceWillBeGarbageColle
cted>(); |
| 36 } | 38 } |
| 37 CORE_EXPORT static TestInterfaceWillBeGarbageCollected* toImplWithTypeCheck(
v8::Isolate*, v8::Local<v8::Value>); | 39 CORE_EXPORT static TestInterfaceWillBeGarbageCollected* toImplWithTypeCheck(
v8::Isolate*, v8::Local<v8::Value>); |
| 38 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; | 40 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 template <> | 57 template <> |
| 56 struct V8TypeOf<TestInterfaceWillBeGarbageCollected> { | 58 struct V8TypeOf<TestInterfaceWillBeGarbageCollected> { |
| 57 typedef V8TestInterfaceWillBeGarbageCollected Type; | 59 typedef V8TestInterfaceWillBeGarbageCollected Type; |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 } // namespace blink | 62 } // namespace blink |
| 61 | 63 |
| 62 #endif // V8TestInterfaceWillBeGarbageCollected_h | 64 #endif // V8TestInterfaceWillBeGarbageCollected_h |
| OLD | NEW |