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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 DECLARE_TRACE(); | 52 DECLARE_TRACE(); |
53 | 53 |
54 v8::Local<v8::Context> contextIfInitialized() const { | 54 v8::Local<v8::Context> contextIfInitialized() const { |
55 return m_scriptState ? m_scriptState->context() : v8::Local<v8::Context>(); | 55 return m_scriptState ? m_scriptState->context() : v8::Local<v8::Context>(); |
56 } | 56 } |
57 void initializeIfNeeded(); | 57 void initializeIfNeeded(); |
58 | 58 |
59 void clearForClose(); | 59 void clearForClose(); |
60 void clearForNavigation(); | 60 void clearForNavigation(); |
61 | 61 |
62 v8::Local<v8::Object> globalIfNotDetached(); | 62 v8::Local<v8::Object> globalProxy(); |
63 v8::Local<v8::Object> releaseGlobal(); | 63 v8::Local<v8::Object> releaseGlobal(); |
64 void setGlobal(v8::Local<v8::Object>); | 64 void setGlobal(v8::Local<v8::Object>); |
65 | 65 |
66 // TODO(dcheng): Temporarily exposed to avoid include cycles. Remove the need | 66 // TODO(dcheng): Temporarily exposed to avoid include cycles. Remove the need |
67 // for this and remove this getter. | 67 // for this and remove this getter. |
68 DOMWrapperWorld& world() { return *m_world; } | 68 DOMWrapperWorld& world() { return *m_world; } |
69 | 69 |
70 protected: | 70 protected: |
71 // TODO(dcheng): Remove this friend declaration once LocalWindowProxyManager | 71 // TODO(dcheng): Remove this friend declaration once LocalWindowProxyManager |
72 // and ScriptController are merged. | 72 // and ScriptController are merged. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 RefPtr<ScriptState> m_scriptState; | 105 RefPtr<ScriptState> m_scriptState; |
106 // TODO(dcheng): Consider making these private and using getters. | 106 // TODO(dcheng): Consider making these private and using getters. |
107 const RefPtr<DOMWrapperWorld> m_world; | 107 const RefPtr<DOMWrapperWorld> m_world; |
108 ScopedPersistent<v8::Object> m_globalProxy; | 108 ScopedPersistent<v8::Object> m_globalProxy; |
109 Lifecycle m_lifecycle; | 109 Lifecycle m_lifecycle; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace blink | 112 } // namespace blink |
113 | 113 |
114 #endif // WindowProxy_h | 114 #endif // WindowProxy_h |
OLD | NEW |