| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 Frame* MainFrame() const { return main_frame_; } | 145 Frame* MainFrame() const { return main_frame_; } |
| 146 // Escape hatch for existing code that assumes that the root frame is | 146 // Escape hatch for existing code that assumes that the root frame is |
| 147 // always a LocalFrame. With OOPI, this is not always the case. Code that | 147 // always a LocalFrame. With OOPI, this is not always the case. Code that |
| 148 // depends on this will generally have to be rewritten to propagate any | 148 // depends on this will generally have to be rewritten to propagate any |
| 149 // necessary state through all renderer processes for that page and/or | 149 // necessary state through all renderer processes for that page and/or |
| 150 // coordinate/rely on the browser process to help dispatch/coordinate work. | 150 // coordinate/rely on the browser process to help dispatch/coordinate work. |
| 151 LocalFrame* DeprecatedLocalMainFrame() const { | 151 LocalFrame* DeprecatedLocalMainFrame() const { |
| 152 return ToLocalFrame(main_frame_); | 152 return ToLocalFrame(main_frame_); |
| 153 } | 153 } |
| 154 | 154 |
| 155 void WillUnloadDocument(const Document&); |
| 155 void DocumentDetached(Document*); | 156 void DocumentDetached(Document*); |
| 156 | 157 |
| 157 bool OpenedByDOM() const; | 158 bool OpenedByDOM() const; |
| 158 void SetOpenedByDOM(); | 159 void SetOpenedByDOM(); |
| 159 | 160 |
| 160 PageAnimator& Animator() { return *animator_; } | 161 PageAnimator& Animator() { return *animator_; } |
| 161 ChromeClient& GetChromeClient() const { return *chrome_client_; } | 162 ChromeClient& GetChromeClient() const { return *chrome_client_; } |
| 162 AutoscrollController& GetAutoscrollController() const { | 163 AutoscrollController& GetAutoscrollController() const { |
| 163 return *autoscroll_controller_; | 164 return *autoscroll_controller_; |
| 164 } | 165 } |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 #endif | 369 #endif |
| 369 | 370 |
| 370 int subframe_count_; | 371 int subframe_count_; |
| 371 }; | 372 }; |
| 372 | 373 |
| 373 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 374 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
| 374 | 375 |
| 375 } // namespace blink | 376 } // namespace blink |
| 376 | 377 |
| 377 #endif // Page_h | 378 #endif // Page_h |
| OLD | NEW |