Chromium Code Reviews| Index: Source/core/page/Page.h |
| diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h |
| index 73d68ebad551aebb2fd4b0b61daf2741113fc127..2523b742adcf65a37ed2a5d760781630e97a0253 100644 |
| --- a/Source/core/page/Page.h |
| +++ b/Source/core/page/Page.h |
| @@ -22,6 +22,7 @@ |
| #define Page_h |
| #include "core/dom/ViewportDescription.h" |
| +#include "core/frame/LocalFrame.h" |
| #include "core/frame/SettingsDelegate.h" |
| #include "core/frame/UseCounter.h" |
| #include "core/page/PageAnimator.h" |
| @@ -51,7 +52,7 @@ class DragClient; |
| class DragController; |
| class EditorClient; |
| class FocusController; |
| -class LocalFrame; |
| +class Frame; |
| class FrameHost; |
| class HistoryItem; |
| class InspectorClient; |
| @@ -127,8 +128,9 @@ public: |
| SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClient; } |
| UndoStack& undoStack() const { return *m_undoStack; } |
| - void setMainFrame(PassRefPtr<LocalFrame>); |
| - LocalFrame* mainFrame() const { return m_mainFrame.get(); } |
| + void setMainFrame(PassRefPtr<Frame>); |
| + Frame* mainFrame() const { return m_mainFrame.get(); } |
| + LocalFrame* deprecatedLocalMainFrame() const { return toLocalFrame(m_mainFrame.get()); } |
|
abarth-chromium
2014/06/15 03:46:15
I would probably add a comment explaining why this
dcheng
2014/06/15 05:05:43
Done.
|
| void documentDetached(Document*); |
| @@ -252,7 +254,7 @@ private: |
| OwnPtr<ScrollingCoordinator> m_scrollingCoordinator; |
| const OwnPtr<UndoStack> m_undoStack; |
| - RefPtr<LocalFrame> m_mainFrame; |
| + RefPtr<Frame> m_mainFrame; |
| mutable RefPtr<PluginData> m_pluginData; |