| 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 V8TestInterfaceGarbageCollected_h | 7 #ifndef V8TestInterfaceGarbageCollected_h |
| 8 #define V8TestInterfaceGarbageCollected_h | 8 #define V8TestInterfaceGarbageCollected_h |
| 9 | 9 |
| 10 #include "bindings/tests/idls/TestInterfaceGarbageCollected.h" | 10 #include "bindings/tests/idls/TestInterfaceGarbageCollected.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 { | 25 { |
| 26 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); | 26 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); |
| 27 } | 27 } |
| 28 static TestInterfaceGarbageCollected* toNativeWithTypeCheck(v8::Isolate*, v8
::Handle<v8::Value>); | 28 static TestInterfaceGarbageCollected* toNativeWithTypeCheck(v8::Isolate*, v8
::Handle<v8::Value>); |
| 29 static const WrapperTypeInfo wrapperTypeInfo; | 29 static const WrapperTypeInfo wrapperTypeInfo; |
| 30 static void derefObject(void*); | 30 static void derefObject(void*); |
| 31 static EventTarget* toEventTarget(v8::Handle<v8::Object>); | 31 static EventTarget* toEventTarget(v8::Handle<v8::Object>); |
| 32 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 32 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 33 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + 0; | 33 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + 0; |
| 34 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount
+ 1; | 34 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount
+ 1; |
| 35 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 2
; | 35 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1
+ 1; |
| 36 static inline void* toInternalPointer(TestInterfaceGarbageCollected* impl) | 36 static inline void* toInternalPointer(TestInterfaceGarbageCollected* impl) |
| 37 { | 37 { |
| 38 return V8EventTarget::toInternalPointer(impl); | 38 return V8EventTarget::toInternalPointer(impl); |
| 39 } | 39 } |
| 40 | 40 |
| 41 static inline TestInterfaceGarbageCollected* fromInternalPointer(void* objec
t) | 41 static inline TestInterfaceGarbageCollected* fromInternalPointer(void* objec
t) |
| 42 { | 42 { |
| 43 return static_cast<TestInterfaceGarbageCollected*>(V8EventTarget::fromIn
ternalPointer(object)); | 43 return static_cast<TestInterfaceGarbageCollected*>(V8EventTarget::fromIn
ternalPointer(object)); |
| 44 } | 44 } |
| 45 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceGarbageCollected*, v8::Isolate*) { } | 45 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceGarbageCollected*, v8::Isolate*) { } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 125 } |
| 126 | 126 |
| 127 template<class CallbackInfo, class Wrappable> | 127 template<class CallbackInfo, class Wrappable> |
| 128 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, RawPtr<TestIn
terfaceGarbageCollected> impl, Wrappable* wrappable) | 128 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, RawPtr<TestIn
terfaceGarbageCollected> impl, Wrappable* wrappable) |
| 129 { | 129 { |
| 130 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 130 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } | 133 } |
| 134 #endif // V8TestInterfaceGarbageCollected_h | 134 #endif // V8TestInterfaceGarbageCollected_h |
| OLD | NEW |