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.h.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.h.tmpl |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 STATIC_ONLY(V8TestInterfaceEventTarget); | 35 STATIC_ONLY(V8TestInterfaceEventTarget); |
36 public: | 36 public: |
37 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 37 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
38 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); | 38 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); |
39 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c
onst DOMWrapperWorld&); | 39 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c
onst DOMWrapperWorld&); |
40 static TestInterfaceEventTarget* toImpl(v8::Local<v8::Object> object) { | 40 static TestInterfaceEventTarget* toImpl(v8::Local<v8::Object> object) { |
41 return toScriptWrappable(object)->toImpl<TestInterfaceEventTarget>(); | 41 return toScriptWrappable(object)->toImpl<TestInterfaceEventTarget>(); |
42 } | 42 } |
43 CORE_EXPORT static TestInterfaceEventTarget* toImplWithTypeCheck(v8::Isolate*,
v8::Local<v8::Value>); | 43 CORE_EXPORT static TestInterfaceEventTarget* toImplWithTypeCheck(v8::Isolate*,
v8::Local<v8::Value>); |
44 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; | 44 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
45 template<typename VisitorDispatcher> | 45 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) { |
46 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{ | |
47 visitor->trace(scriptWrappable->toImpl<TestInterfaceEventTarget>()); | 46 visitor->trace(scriptWrappable->toImpl<TestInterfaceEventTarget>()); |
48 } | 47 } |
49 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { | 48 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { |
50 visitor->traceWrappers(scriptWrappable->toImpl<TestInterfaceEventTarget>()); | 49 visitor->traceWrappers(scriptWrappable->toImpl<TestInterfaceEventTarget>()); |
51 } | 50 } |
52 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCount
+ 0; | 51 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCount
+ 0; |
53 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1; | 52 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1; |
54 }; | 53 }; |
55 | 54 |
56 template <> | 55 template <> |
57 struct V8TypeOf<TestInterfaceEventTarget> { | 56 struct V8TypeOf<TestInterfaceEventTarget> { |
58 typedef V8TestInterfaceEventTarget Type; | 57 typedef V8TestInterfaceEventTarget Type; |
59 }; | 58 }; |
60 | 59 |
61 } // namespace blink | 60 } // namespace blink |
62 | 61 |
63 #endif // V8TestInterfaceEventTarget_h | 62 #endif // V8TestInterfaceEventTarget_h |
OLD | NEW |