| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 59 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
| 60 static inline void* toInternalPointer(TestInterfacePythonImplementation* imp
l) | 60 static inline void* toInternalPointer(TestInterfacePythonImplementation* imp
l) |
| 61 { | 61 { |
| 62 return V8TestInterfaceEmpty::toInternalPointer(impl); | 62 return V8TestInterfaceEmpty::toInternalPointer(impl); |
| 63 } | 63 } |
| 64 | 64 |
| 65 static inline TestInterfacePythonImplementation* fromInternalPointer(void* o
bject) | 65 static inline TestInterfacePythonImplementation* fromInternalPointer(void* o
bject) |
| 66 { | 66 { |
| 67 return static_cast<TestInterfacePythonImplementation*>(V8TestInterfaceEm
pty::fromInternalPointer(object)); | 67 return static_cast<TestInterfacePythonImplementation*>(V8TestInterfaceEm
pty::fromInternalPointer(object)); |
| 68 } | 68 } |
| 69 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfacePythonImplementation*, v8::Isolate*) { } | 69 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfacePythonImplementation*, v8::Isolate*); |
| 70 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } | 70 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 template<> | 75 template<> |
| 76 class WrapperTypeTraits<TestInterfacePythonImplementation > { | 76 class WrapperTypeTraits<TestInterfacePythonImplementation > { |
| 77 public: | 77 public: |
| 78 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestInterfacePyt
hon::wrapperTypeInfo; } | 78 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestInterfacePyt
hon::wrapperTypeInfo; } |
| 79 }; | 79 }; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 template<class CallbackInfo, class Wrappable> | 119 template<class CallbackInfo, class Wrappable> |
| 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfacePythonImplementation > impl, Wrappable* wrappable) | 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfacePythonImplementation > impl, Wrappable* wrappable) |
| 121 { | 121 { |
| 122 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 122 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 123 } | 123 } |
| 124 | 124 |
| 125 } | 125 } |
| 126 #endif // ENABLE(CONDITION) | 126 #endif // ENABLE(CONDITION) |
| 127 #endif // V8TestInterfacePython_h | 127 #endif // V8TestInterfacePython_h |
| OLD | NEW |