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 // clang-format off | 8 // clang-format off |
9 #ifndef V8TestInterface_h | 9 #ifndef V8TestInterface_h |
10 #define V8TestInterface_h | 10 #define V8TestInterface_h |
11 | 11 |
12 #include "bindings/core/v8/ScriptWrappable.h" | 12 #include "bindings/core/v8/ScriptWrappable.h" |
13 #include "bindings/core/v8/StringOrDouble.h" | 13 #include "bindings/core/v8/StringOrDouble.h" |
14 #include "bindings/core/v8/ToV8.h" | 14 #include "bindings/core/v8/ToV8.h" |
15 #include "bindings/core/v8/V8Binding.h" | 15 #include "bindings/core/v8/V8Binding.h" |
16 #include "bindings/core/v8/V8DOMWrapper.h" | 16 #include "bindings/core/v8/V8DOMWrapper.h" |
17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
18 #include "bindings/core/v8/WrapperTypeInfo.h" | 18 #include "bindings/core/v8/WrapperTypeInfo.h" |
19 #include "bindings/tests/idls/core/TestInterfaceImplementation.h" | 19 #include "bindings/tests/idls/core/TestInterfaceImplementation.h" |
20 #include "core/CoreExport.h" | 20 #include "core/CoreExport.h" |
21 #include "platform/heap/Handle.h" | 21 #include "platform/heap/Handle.h" |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 | 24 |
25 class V8TestInterface { | 25 class V8TestInterface { |
26 STATIC_ONLY(V8TestInterface); | 26 STATIC_ONLY(V8TestInterface); |
27 public: | 27 public: |
28 class PrivateScript { | |
29 STATIC_ONLY(PrivateScript); | |
30 public: | |
31 static bool shortMethodWithShortArgumentImplementedInPrivateScriptMethod(Loc
alFrame* frame, TestInterface* holderImpl, int value, int* result); | |
32 static bool stringAttributeAttributeGetter(LocalFrame* frame, TestInterfaceI
mplementation* holderImpl, String* result); | |
33 static bool stringAttributeAttributeSetter(LocalFrame* frame, TestInterfaceI
mplementation* holderImpl, String cppValue); | |
34 }; | |
35 | |
36 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 28 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
37 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>
, v8::Isolate*); | 29 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&); | 30 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c
onst DOMWrapperWorld&); |
39 static TestInterfaceImplementation* toImpl(v8::Local<v8::Object> object) { | 31 static TestInterfaceImplementation* toImpl(v8::Local<v8::Object> object) { |
40 return toScriptWrappable(object)->toImpl<TestInterfaceImplementation>(); | 32 return toScriptWrappable(object)->toImpl<TestInterfaceImplementation>(); |
41 } | 33 } |
42 CORE_EXPORT static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolat
e*, v8::Local<v8::Value>); | 34 CORE_EXPORT static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolat
e*, v8::Local<v8::Value>); |
43 CORE_EXPORT static WrapperTypeInfo wrapperTypeInfo; | 35 CORE_EXPORT static WrapperTypeInfo wrapperTypeInfo; |
44 template<typename VisitorDispatcher> | 36 template<typename VisitorDispatcher> |
45 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{ | 37 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
{ |
(...skipping 21 matching lines...) Expand all Loading... |
67 }; | 59 }; |
68 | 60 |
69 template <> | 61 template <> |
70 struct V8TypeOf<TestInterfaceImplementation> { | 62 struct V8TypeOf<TestInterfaceImplementation> { |
71 typedef V8TestInterface Type; | 63 typedef V8TestInterface Type; |
72 }; | 64 }; |
73 | 65 |
74 } // namespace blink | 66 } // namespace blink |
75 | 67 |
76 #endif // V8TestInterface_h | 68 #endif // V8TestInterface_h |
OLD | NEW |