OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 { | 58 { |
59 } | 59 } |
60 private: | 60 private: |
61 v8::HandleScope m_handleScope; | 61 v8::HandleScope m_handleScope; |
62 v8::Context::Scope m_contextScope; | 62 v8::Context::Scope m_contextScope; |
63 }; | 63 }; |
64 | 64 |
65 v8::Local<v8::Context> context() | 65 v8::Local<v8::Context> context() |
66 { | 66 { |
67 ASSERT(m_executionContext); | 67 ASSERT(m_executionContext); |
68 return toV8Context(m_executionContext, *m_world); | 68 return toV8Context(m_executionContext, m_world.get()); |
69 } | 69 } |
70 | 70 |
71 v8::Isolate* isolate() const | 71 v8::Isolate* isolate() const |
72 { | 72 { |
73 return m_isolate; | 73 return m_isolate; |
74 } | 74 } |
75 | 75 |
76 bool isValid() const { return m_executionContext; } | 76 bool isValid() const { return m_executionContext; } |
77 | 77 |
78 private: | 78 private: |
79 v8::Isolate* m_isolate; | 79 v8::Isolate* m_isolate; |
80 ExecutionContext* m_executionContext; | 80 ExecutionContext* m_executionContext; |
81 RefPtr<DOMWrapperWorld> m_world; | 81 RefPtr<DOMWrapperWorld> m_world; |
82 }; | 82 }; |
83 | 83 |
84 } | 84 } |
85 #endif | 85 #endif |
OLD | NEW |