| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 62 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
| 63 static inline void* toInternalPointer(TestInterface* impl) | 63 static inline void* toInternalPointer(TestInterface* impl) |
| 64 { | 64 { |
| 65 return impl; | 65 return impl; |
| 66 } | 66 } |
| 67 | 67 |
| 68 static inline TestInterface* fromInternalPointer(void* object) | 68 static inline TestInterface* fromInternalPointer(void* object) |
| 69 { | 69 { |
| 70 return static_cast<TestInterface*>(object); | 70 return static_cast<TestInterface*>(object); |
| 71 } | 71 } |
| 72 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterface*, v8::Isolate*) { } | 72 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterface*, v8::Isolate*); |
| 73 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } | 73 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 friend v8::Handle<v8::Object> wrap(TestInterface*, v8::Handle<v8::Object> cr
eationContext, v8::Isolate*); | 76 friend v8::Handle<v8::Object> wrap(TestInterface*, v8::Handle<v8::Object> cr
eationContext, v8::Isolate*); |
| 77 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface>, v8::H
andle<v8::Object> creationContext, v8::Isolate*); | 77 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface>, v8::H
andle<v8::Object> creationContext, v8::Isolate*); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 template<> | 80 template<> |
| 81 class WrapperTypeTraits<TestInterface > { | 81 class WrapperTypeTraits<TestInterface > { |
| 82 public: | 82 public: |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 template<class CallbackInfo, class Wrappable> | 160 template<class CallbackInfo, class Wrappable> |
| 161 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterface > impl, Wrappable* wrappable) | 161 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterface > impl, Wrappable* wrappable) |
| 162 { | 162 { |
| 163 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 163 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } | 166 } |
| 167 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 167 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| 168 #endif // V8TestInterface_h | 168 #endif // V8TestInterface_h |
| OLD | NEW |