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