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 16 matching lines...) Expand all Loading... |
27 STATIC_ONLY(V8TestConstants); | 27 STATIC_ONLY(V8TestConstants); |
28 public: | 28 public: |
29 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 29 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
30 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); | 30 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); |
31 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c
onst DOMWrapperWorld&); | 31 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c
onst DOMWrapperWorld&); |
32 static TestConstants* toImpl(v8::Local<v8::Object> object) { | 32 static TestConstants* toImpl(v8::Local<v8::Object> object) { |
33 return toScriptWrappable(object)->toImpl<TestConstants>(); | 33 return toScriptWrappable(object)->toImpl<TestConstants>(); |
34 } | 34 } |
35 CORE_EXPORT static TestConstants* toImplWithTypeCheck(v8::Isolate*, v8::Local<
v8::Value>); | 35 CORE_EXPORT static TestConstants* toImplWithTypeCheck(v8::Isolate*, v8::Local<
v8::Value>); |
36 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; | 36 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
37 template<typename VisitorDispatcher> | 37 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) { |
38 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{ | |
39 visitor->trace(scriptWrappable->toImpl<TestConstants>()); | 38 visitor->trace(scriptWrappable->toImpl<TestConstants>()); |
40 } | 39 } |
41 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { | 40 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { |
42 visitor->traceWrappers(scriptWrappable->toImpl<TestConstants>()); | 41 visitor->traceWrappers(scriptWrappable->toImpl<TestConstants>()); |
43 } | 42 } |
44 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; | 43 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
45 | 44 |
46 static void installFeatureName1(v8::Isolate*, const DOMWrapperWorld&, v8::Loca
l<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Function>
interface); | 45 static void installFeatureName1(v8::Isolate*, const DOMWrapperWorld&, v8::Loca
l<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Function>
interface); |
47 static void installFeatureName1(ScriptState*, v8::Local<v8::Object> instance); | 46 static void installFeatureName1(ScriptState*, v8::Local<v8::Object> instance); |
48 static void installFeatureName1(ScriptState*); | 47 static void installFeatureName1(ScriptState*); |
49 | 48 |
50 static void installFeatureName2(v8::Isolate*, const DOMWrapperWorld&, v8::Loca
l<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Function>
interface); | 49 static void installFeatureName2(v8::Isolate*, const DOMWrapperWorld&, v8::Loca
l<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Function>
interface); |
51 static void installFeatureName2(ScriptState*, v8::Local<v8::Object> instance); | 50 static void installFeatureName2(ScriptState*, v8::Local<v8::Object> instance); |
52 static void installFeatureName2(ScriptState*); | 51 static void installFeatureName2(ScriptState*); |
53 }; | 52 }; |
54 | 53 |
55 template <> | 54 template <> |
56 struct V8TypeOf<TestConstants> { | 55 struct V8TypeOf<TestConstants> { |
57 typedef V8TestConstants Type; | 56 typedef V8TestConstants Type; |
58 }; | 57 }; |
59 | 58 |
60 } // namespace blink | 59 } // namespace blink |
61 | 60 |
62 #endif // V8TestConstants_h | 61 #endif // V8TestConstants_h |
OLD | NEW |