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 18 matching lines...) Expand all Loading... |
29 STATIC_ONLY(V8TestInterface); | 29 STATIC_ONLY(V8TestInterface); |
30 public: | 30 public: |
31 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 31 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
32 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); | 32 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); |
33 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c
onst DOMWrapperWorld&); | 33 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c
onst DOMWrapperWorld&); |
34 static TestInterfaceImplementation* toImpl(v8::Local<v8::Object> object) { | 34 static TestInterfaceImplementation* toImpl(v8::Local<v8::Object> object) { |
35 return toScriptWrappable(object)->toImpl<TestInterfaceImplementation>(); | 35 return toScriptWrappable(object)->toImpl<TestInterfaceImplementation>(); |
36 } | 36 } |
37 CORE_EXPORT static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolat
e*, v8::Local<v8::Value>); | 37 CORE_EXPORT static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolat
e*, v8::Local<v8::Value>); |
38 CORE_EXPORT static WrapperTypeInfo wrapperTypeInfo; | 38 CORE_EXPORT static WrapperTypeInfo wrapperTypeInfo; |
39 template<typename VisitorDispatcher> | 39 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) { |
40 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{ | |
41 visitor->trace(scriptWrappable->toImpl<TestInterfaceImplementation>()); | 40 visitor->trace(scriptWrappable->toImpl<TestInterfaceImplementation>()); |
42 } | 41 } |
43 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { | 42 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { |
44 visitor->traceWrappers(scriptWrappable->toImpl<TestInterfaceImplementation>(
)); | 43 visitor->traceWrappers(scriptWrappable->toImpl<TestInterfaceImplementation>(
)); |
45 } | 44 } |
46 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persiste
nt<v8::Object>&); | 45 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persiste
nt<v8::Object>&); |
47 static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbackI
nfo<v8::Value>&); | 46 static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbackI
nfo<v8::Value>&); |
48 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); | 47 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
49 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; | 48 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
50 CORE_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8::Conte
xt>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8
::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate); | 49 CORE_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8::Conte
xt>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8
::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate); |
(...skipping 11 matching lines...) Expand all Loading... |
62 }; | 61 }; |
63 | 62 |
64 template <> | 63 template <> |
65 struct V8TypeOf<TestInterfaceImplementation> { | 64 struct V8TypeOf<TestInterfaceImplementation> { |
66 typedef V8TestInterface Type; | 65 typedef V8TestInterface Type; |
67 }; | 66 }; |
68 | 67 |
69 } // namespace blink | 68 } // namespace blink |
70 | 69 |
71 #endif // V8TestInterface_h | 70 #endif // V8TestInterface_h |
OLD | NEW |