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. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #ifndef V8TestInterface_h | 7 #ifndef V8TestInterface_h |
8 #define V8TestInterface_h | 8 #define V8TestInterface_h |
9 | 9 |
10 #if ENABLE(CONDITION) | 10 #if ENABLE(CONDITION) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 44 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
45 static inline ScriptWrappableBase* toInternalPointer(TestInterfaceImplementa
tion* impl) | 45 static inline ScriptWrappableBase* toInternalPointer(TestInterfaceImplementa
tion* impl) |
46 { | 46 { |
47 return V8TestInterfaceEmpty::toInternalPointer(impl); | 47 return V8TestInterfaceEmpty::toInternalPointer(impl); |
48 } | 48 } |
49 | 49 |
50 static inline TestInterfaceImplementation* fromInternalPointer(ScriptWrappab
leBase* internalPointer) | 50 static inline TestInterfaceImplementation* fromInternalPointer(ScriptWrappab
leBase* internalPointer) |
51 { | 51 { |
52 return static_cast<TestInterfaceImplementation*>(V8TestInterfaceEmpty::f
romInternalPointer(internalPointer)); | 52 return static_cast<TestInterfaceImplementation*>(V8TestInterfaceEmpty::f
romInternalPointer(internalPointer)); |
53 } | 53 } |
54 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceImplementation*, v8::Isolate*); | 54 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*); |
55 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*); | 55 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*); |
56 | 56 |
57 private: | 57 private: |
58 }; | 58 }; |
59 | 59 |
60 class TestInterfaceImplementation; | 60 class TestInterfaceImplementation; |
61 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); | 61 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); |
62 | 62 |
63 template<class CallbackInfo> | 63 template<class CallbackInfo> |
64 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl
ementation* impl) | 64 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl
ementation* impl) |
65 { | 65 { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 template<class CallbackInfo, class Wrappable> | 98 template<class CallbackInfo, class Wrappable> |
99 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceImplementation> impl, Wrappable* wrappable) | 99 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceImplementation> impl, Wrappable* wrappable) |
100 { | 100 { |
101 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 101 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
102 } | 102 } |
103 | 103 |
104 } | 104 } |
105 #endif // ENABLE(CONDITION) | 105 #endif // ENABLE(CONDITION) |
106 #endif // V8TestInterface_h | 106 #endif // V8TestInterface_h |
OLD | NEW |