| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef V8DOMWrapper_h | 31 #ifndef V8DOMWrapper_h |
| 32 #define V8DOMWrapper_h | 32 #define V8DOMWrapper_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/DOMDataStore.h" | 34 #include "bindings/core/v8/DOMDataStore.h" |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RawPtr.h" | 36 #include "wtf/RawPtr.h" |
| 37 #include "wtf/text/AtomicString.h" | 37 #include "wtf/text/AtomicString.h" |
| 38 #include <v8.h> | 38 #include <v8.h> |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace blink { |
| 41 | 41 |
| 42 struct WrapperTypeInfo; | 42 struct WrapperTypeInfo; |
| 43 | 43 |
| 44 class V8DOMWrapper { | 44 class V8DOMWrapper { |
| 45 public: | 45 public: |
| 46 static v8::Local<v8::Object> createWrapper(v8::Handle<v8::Object> creationCo
ntext, const WrapperTypeInfo*, void*, v8::Isolate*); | 46 static v8::Local<v8::Object> createWrapper(v8::Handle<v8::Object> creationCo
ntext, const WrapperTypeInfo*, void*, v8::Isolate*); |
| 47 | 47 |
| 48 template<typename V8T, typename T> | 48 template<typename V8T, typename T> |
| 49 static inline v8::Handle<v8::Object> associateObjectWithWrapper(PassRefPtr<T
>, const WrapperTypeInfo*, v8::Handle<v8::Object>, v8::Isolate*, WrapperConfigur
ation::Lifetime); | 49 static inline v8::Handle<v8::Object> associateObjectWithWrapper(PassRefPtr<T
>, const WrapperTypeInfo*, v8::Handle<v8::Object>, v8::Isolate*, WrapperConfigur
ation::Lifetime); |
| 50 template<typename V8T, typename T> | 50 template<typename V8T, typename T> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 m_context->Exit(); | 169 m_context->Exit(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 v8::Handle<v8::Context> context() const { return m_context; } | 172 v8::Handle<v8::Context> context() const { return m_context; } |
| 173 | 173 |
| 174 private: | 174 private: |
| 175 bool m_didEnterContext; | 175 bool m_didEnterContext; |
| 176 v8::Handle<v8::Context> m_context; | 176 v8::Handle<v8::Context> m_context; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace WebCore | 179 } // namespace blink |
| 180 | 180 |
| 181 #endif // V8DOMWrapper_h | 181 #endif // V8DOMWrapper_h |
| OLD | NEW |