| 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 19 matching lines...) Expand all Loading... |
| 30 STATIC_ONLY(V8TestInterface5); | 30 STATIC_ONLY(V8TestInterface5); |
| 31 public: | 31 public: |
| 32 MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 32 MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
| 33 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); | 33 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); |
| 34 MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*
, const DOMWrapperWorld&); | 34 MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*
, const DOMWrapperWorld&); |
| 35 static TestInterface5Implementation* toImpl(v8::Local<v8::Object> object) { | 35 static TestInterface5Implementation* toImpl(v8::Local<v8::Object> object) { |
| 36 return toScriptWrappable(object)->toImpl<TestInterface5Implementation>(); | 36 return toScriptWrappable(object)->toImpl<TestInterface5Implementation>(); |
| 37 } | 37 } |
| 38 MODULES_EXPORT static TestInterface5Implementation* toImplWithTypeCheck(v8::Is
olate*, v8::Local<v8::Value>); | 38 MODULES_EXPORT static TestInterface5Implementation* toImplWithTypeCheck(v8::Is
olate*, v8::Local<v8::Value>); |
| 39 MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo; | 39 MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo; |
| 40 template<typename VisitorDispatcher> | 40 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) { |
| 41 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{ | |
| 42 visitor->trace(scriptWrappable->toImpl<TestInterface5Implementation>()); | 41 visitor->trace(scriptWrappable->toImpl<TestInterface5Implementation>()); |
| 43 } | 42 } |
| 44 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { | 43 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap
pable) { |
| 45 visitor->traceWrappers(scriptWrappable->toImpl<TestInterface5Implementation>
()); | 44 visitor->traceWrappers(scriptWrappable->toImpl<TestInterface5Implementation>
()); |
| 46 } | 45 } |
| 47 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persiste
nt<v8::Object>&); | 46 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persiste
nt<v8::Object>&); |
| 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 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); | 49 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); |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 template <> | 52 template <> |
| 54 struct V8TypeOf<TestInterface5Implementation> { | 53 struct V8TypeOf<TestInterface5Implementation> { |
| 55 typedef V8TestInterface5 Type; | 54 typedef V8TestInterface5 Type; |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } // namespace blink | 57 } // namespace blink |
| 59 | 58 |
| 60 #endif // V8TestInterface5_h | 59 #endif // V8TestInterface5_h |
| OLD | NEW |