| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef SKY_ENGINE_CORE_PAGE_PAGE_H_ | 21 #ifndef SKY_ENGINE_CORE_PAGE_PAGE_H_ |
| 22 #define SKY_ENGINE_CORE_PAGE_PAGE_H_ | 22 #define SKY_ENGINE_CORE_PAGE_PAGE_H_ |
| 23 | 23 |
| 24 #include "sky/engine/core/frame/LocalFrame.h" | 24 #include "sky/engine/core/frame/LocalFrame.h" |
| 25 #include "sky/engine/core/frame/SettingsDelegate.h" | 25 #include "sky/engine/core/frame/SettingsDelegate.h" |
| 26 #include "sky/engine/core/frame/UseCounter.h" | |
| 27 #include "sky/engine/core/page/PageAnimator.h" | 26 #include "sky/engine/core/page/PageAnimator.h" |
| 28 #include "sky/engine/core/page/PageVisibilityState.h" | 27 #include "sky/engine/core/page/PageVisibilityState.h" |
| 29 #include "sky/engine/platform/LifecycleContext.h" | 28 #include "sky/engine/platform/LifecycleContext.h" |
| 30 #include "sky/engine/platform/Supplementable.h" | 29 #include "sky/engine/platform/Supplementable.h" |
| 31 #include "sky/engine/platform/geometry/LayoutRect.h" | 30 #include "sky/engine/platform/geometry/LayoutRect.h" |
| 32 #include "sky/engine/platform/geometry/Region.h" | 31 #include "sky/engine/platform/geometry/Region.h" |
| 33 #include "sky/engine/platform/heap/Handle.h" | 32 #include "sky/engine/platform/heap/Handle.h" |
| 34 #include "sky/engine/wtf/Forward.h" | 33 #include "sky/engine/wtf/Forward.h" |
| 35 #include "sky/engine/wtf/HashSet.h" | 34 #include "sky/engine/wtf/HashSet.h" |
| 36 #include "sky/engine/wtf/Noncopyable.h" | 35 #include "sky/engine/wtf/Noncopyable.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void documentDetached(Document*); | 96 void documentDetached(Document*); |
| 98 | 97 |
| 99 PageAnimator& animator() { return m_animator; } | 98 PageAnimator& animator() { return m_animator; } |
| 100 Chrome& chrome() const { return *m_chrome; } | 99 Chrome& chrome() const { return *m_chrome; } |
| 101 AutoscrollController& autoscrollController() const { return *m_autoscrollCon
troller; } | 100 AutoscrollController& autoscrollController() const { return *m_autoscrollCon
troller; } |
| 102 DragCaretController& dragCaretController() const { return *m_dragCaretContro
ller; } | 101 DragCaretController& dragCaretController() const { return *m_dragCaretContro
ller; } |
| 103 FocusController& focusController() const { return *m_focusController; } | 102 FocusController& focusController() const { return *m_focusController; } |
| 104 | 103 |
| 105 Settings& settings() const { return *m_settings; } | 104 Settings& settings() const { return *m_settings; } |
| 106 | 105 |
| 107 UseCounter& useCounter() { return m_useCounter; } | |
| 108 | |
| 109 void unmarkAllTextMatches(); | 106 void unmarkAllTextMatches(); |
| 110 | 107 |
| 111 float deviceScaleFactor() const { return m_deviceScaleFactor; } | 108 float deviceScaleFactor() const { return m_deviceScaleFactor; } |
| 112 void setDeviceScaleFactor(float); | 109 void setDeviceScaleFactor(float); |
| 113 | 110 |
| 114 PageVisibilityState visibilityState() const; | 111 PageVisibilityState visibilityState() const; |
| 115 void setVisibilityState(PageVisibilityState, bool); | 112 void setVisibilityState(PageVisibilityState, bool); |
| 116 | 113 |
| 117 bool isCursorVisible() const; | 114 bool isCursorVisible() const; |
| 118 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } | 115 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // after creating it. These are still safe because they always create a | 167 // after creating it. These are still safe because they always create a |
| 171 // Frame with a FrameView. FrameView and Frame hold references to each | 168 // Frame with a FrameView. FrameView and Frame hold references to each |
| 172 // other, thus keeping each other alive. The call to willBeDestroyed() | 169 // other, thus keeping each other alive. The call to willBeDestroyed() |
| 173 // breaks this cycle, so the frame is still properly destroyed once no | 170 // breaks this cycle, so the frame is still properly destroyed once no |
| 174 // longer needed. | 171 // longer needed. |
| 175 LocalFrame* m_mainFrame; | 172 LocalFrame* m_mainFrame; |
| 176 | 173 |
| 177 EditorClient* const m_editorClient; | 174 EditorClient* const m_editorClient; |
| 178 SpellCheckerClient* const m_spellCheckerClient; | 175 SpellCheckerClient* const m_spellCheckerClient; |
| 179 | 176 |
| 180 UseCounter m_useCounter; | |
| 181 | |
| 182 float m_deviceScaleFactor; | 177 float m_deviceScaleFactor; |
| 183 | 178 |
| 184 double m_timerAlignmentInterval; | 179 double m_timerAlignmentInterval; |
| 185 | 180 |
| 186 PageVisibilityState m_visibilityState; | 181 PageVisibilityState m_visibilityState; |
| 187 | 182 |
| 188 bool m_isCursorVisible; | 183 bool m_isCursorVisible; |
| 189 | 184 |
| 190 #if ENABLE(ASSERT) | 185 #if ENABLE(ASSERT) |
| 191 bool m_isPainting; | 186 bool m_isPainting; |
| 192 #endif | 187 #endif |
| 193 | 188 |
| 194 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve
rs; | 189 HashSet<RawPtr<MultisamplingChangedObserver> > m_multisamplingChangedObserve
rs; |
| 195 | 190 |
| 196 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 191 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
| 197 // FIXME: Most of the members of Page should move onto FrameHost. | 192 // FIXME: Most of the members of Page should move onto FrameHost. |
| 198 OwnPtr<FrameHost> m_frameHost; | 193 OwnPtr<FrameHost> m_frameHost; |
| 199 }; | 194 }; |
| 200 | 195 |
| 201 } // namespace blink | 196 } // namespace blink |
| 202 | 197 |
| 203 #endif // SKY_ENGINE_CORE_PAGE_PAGE_H_ | 198 #endif // SKY_ENGINE_CORE_PAGE_PAGE_H_ |
| OLD | NEW |