OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 Frame* mainFrame() const { return m_mainFrame; } | 141 Frame* mainFrame() const { return m_mainFrame; } |
142 // Escape hatch for existing code that assumes that the root frame is | 142 // Escape hatch for existing code that assumes that the root frame is |
143 // always a LocalFrame. With OOPI, this is not always the case. Code that | 143 // always a LocalFrame. With OOPI, this is not always the case. Code that |
144 // depends on this will generally have to be rewritten to propagate any | 144 // depends on this will generally have to be rewritten to propagate any |
145 // necessary state through all renderer processes for that page and/or | 145 // necessary state through all renderer processes for that page and/or |
146 // coordinate/rely on the browser process to help dispatch/coordinate work. | 146 // coordinate/rely on the browser process to help dispatch/coordinate work. |
147 LocalFrame* deprecatedLocalMainFrame() const { | 147 LocalFrame* deprecatedLocalMainFrame() const { |
148 return toLocalFrame(m_mainFrame); | 148 return toLocalFrame(m_mainFrame); |
149 } | 149 } |
150 | 150 |
| 151 void willUnloadDocument(const Document&); |
151 void documentDetached(Document*); | 152 void documentDetached(Document*); |
152 | 153 |
153 bool openedByDOM() const; | 154 bool openedByDOM() const; |
154 void setOpenedByDOM(); | 155 void setOpenedByDOM(); |
155 | 156 |
156 PageAnimator& animator() { return *m_animator; } | 157 PageAnimator& animator() { return *m_animator; } |
157 ChromeClient& chromeClient() const { return *m_chromeClient; } | 158 ChromeClient& chromeClient() const { return *m_chromeClient; } |
158 AutoscrollController& autoscrollController() const { | 159 AutoscrollController& autoscrollController() const { |
159 return *m_autoscrollController; | 160 return *m_autoscrollController; |
160 } | 161 } |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 // Page. | 321 // Page. |
321 // FIXME: Most of the members of Page should move onto FrameHost. | 322 // FIXME: Most of the members of Page should move onto FrameHost. |
322 Member<FrameHost> m_frameHost; | 323 Member<FrameHost> m_frameHost; |
323 }; | 324 }; |
324 | 325 |
325 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 326 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
326 | 327 |
327 } // namespace blink | 328 } // namespace blink |
328 | 329 |
329 #endif // Page_h | 330 #endif // Page_h |
OLD | NEW |