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 25 matching lines...) Expand all Loading... |
36 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 36 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
37 static inline void* toInternalPointer(TestInterfaceImplementation* impl) | 37 static inline void* toInternalPointer(TestInterfaceImplementation* impl) |
38 { | 38 { |
39 return V8TestInterfaceEmpty::toInternalPointer(impl); | 39 return V8TestInterfaceEmpty::toInternalPointer(impl); |
40 } | 40 } |
41 | 41 |
42 static inline TestInterfaceImplementation* fromInternalPointer(void* object) | 42 static inline TestInterfaceImplementation* fromInternalPointer(void* object) |
43 { | 43 { |
44 return static_cast<TestInterfaceImplementation*>(V8TestInterfaceEmpty::f
romInternalPointer(object)); | 44 return static_cast<TestInterfaceImplementation*>(V8TestInterfaceEmpty::f
romInternalPointer(object)); |
45 } | 45 } |
46 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*); | 46 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceImplementation*, v8::Isolate*); |
47 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*); | 47 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*); |
48 | 48 |
49 private: | 49 private: |
50 }; | 50 }; |
51 | 51 |
52 class TestInterfaceImplementation; | 52 class TestInterfaceImplementation; |
53 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); | 53 v8::Handle<v8::Value> toV8(TestInterfaceImplementation*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); |
54 | 54 |
55 template<class CallbackInfo> | 55 template<class CallbackInfo> |
56 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl
ementation* impl) | 56 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl
ementation* impl) |
57 { | 57 { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 template<class CallbackInfo, class Wrappable> | 90 template<class CallbackInfo, class Wrappable> |
91 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceImplementation> impl, Wrappable* wrappable) | 91 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceImplementation> impl, Wrappable* wrappable) |
92 { | 92 { |
93 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 93 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
94 } | 94 } |
95 | 95 |
96 } | 96 } |
97 #endif // ENABLE(CONDITION) | 97 #endif // ENABLE(CONDITION) |
98 #endif // V8TestInterface_h | 98 #endif // V8TestInterface_h |
OLD | NEW |