| 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 Page_h | 21 #ifndef Page_h |
| 22 #define Page_h | 22 #define Page_h |
| 23 | 23 |
| 24 #include "core/dom/ViewportDescription.h" | 24 #include "core/dom/ViewportDescription.h" |
| 25 #include "core/frame/LocalFrame.h" | 25 #include "core/frame/LocalFrame.h" |
| 26 #include "core/frame/SettingsDelegate.h" | 26 #include "core/frame/SettingsDelegate.h" |
| 27 #include "core/frame/UseByOriginCounter.h" |
| 27 #include "core/frame/UseCounter.h" | 28 #include "core/frame/UseCounter.h" |
| 28 #include "core/page/PageAnimator.h" | 29 #include "core/page/PageAnimator.h" |
| 29 #include "core/page/PageLifecycleNotifier.h" | 30 #include "core/page/PageLifecycleNotifier.h" |
| 30 #include "core/page/PageLifecycleObserver.h" | 31 #include "core/page/PageLifecycleObserver.h" |
| 31 #include "core/page/PageVisibilityState.h" | 32 #include "core/page/PageVisibilityState.h" |
| 32 #include "platform/Supplementable.h" | 33 #include "platform/Supplementable.h" |
| 33 #include "platform/geometry/LayoutRect.h" | 34 #include "platform/geometry/LayoutRect.h" |
| 34 #include "platform/geometry/Region.h" | 35 #include "platform/geometry/Region.h" |
| 35 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge
nts.get(); } | 142 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge
nts.get(); } |
| 142 | 143 |
| 143 ScrollingCoordinator* scrollingCoordinator(); | 144 ScrollingCoordinator* scrollingCoordinator(); |
| 144 | 145 |
| 145 String mainThreadScrollingReasonsAsText(); | 146 String mainThreadScrollingReasonsAsText(); |
| 146 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(const LocalFra
me*); | 147 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(const LocalFra
me*); |
| 147 | 148 |
| 148 Settings& settings() const { return *m_settings; } | 149 Settings& settings() const { return *m_settings; } |
| 149 | 150 |
| 150 UseCounter& useCounter() { return m_useCounter; } | 151 UseCounter& useCounter() { return m_useCounter; } |
| 152 UseByOriginCounter& useByOriginCounter() { return m_useByOriginCounter; } |
| 151 | 153 |
| 152 void setTabKeyCyclesThroughElements(bool b) { m_tabKeyCyclesThroughElements
= b; } | 154 void setTabKeyCyclesThroughElements(bool b) { m_tabKeyCyclesThroughElements
= b; } |
| 153 bool tabKeyCyclesThroughElements() const { return m_tabKeyCyclesThroughEleme
nts; } | 155 bool tabKeyCyclesThroughElements() const { return m_tabKeyCyclesThroughEleme
nts; } |
| 154 | 156 |
| 155 void unmarkAllTextMatches(); | 157 void unmarkAllTextMatches(); |
| 156 | 158 |
| 157 // DefersLoading is used to delay loads during modal dialogs. | 159 // DefersLoading is used to delay loads during modal dialogs. |
| 158 // Modal dialogs are supposed to freeze all background processes | 160 // Modal dialogs are supposed to freeze all background processes |
| 159 // in the page, including prevent additional loads from staring/continuing. | 161 // in the page, including prevent additional loads from staring/continuing. |
| 160 void setDefersLoading(bool); | 162 void setDefersLoading(bool); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // longer needed. | 240 // longer needed. |
| 239 RawPtrWillBeMember<Frame> m_mainFrame; | 241 RawPtrWillBeMember<Frame> m_mainFrame; |
| 240 | 242 |
| 241 mutable RefPtr<PluginData> m_pluginData; | 243 mutable RefPtr<PluginData> m_pluginData; |
| 242 | 244 |
| 243 EditorClient* const m_editorClient; | 245 EditorClient* const m_editorClient; |
| 244 SpellCheckerClient* const m_spellCheckerClient; | 246 SpellCheckerClient* const m_spellCheckerClient; |
| 245 OwnPtrWillBeMember<ValidationMessageClient> m_validationMessageClient; | 247 OwnPtrWillBeMember<ValidationMessageClient> m_validationMessageClient; |
| 246 | 248 |
| 247 UseCounter m_useCounter; | 249 UseCounter m_useCounter; |
| 250 UseByOriginCounter m_useByOriginCounter; |
| 248 | 251 |
| 249 bool m_openedByDOM; | 252 bool m_openedByDOM; |
| 250 | 253 |
| 251 bool m_tabKeyCyclesThroughElements; | 254 bool m_tabKeyCyclesThroughElements; |
| 252 bool m_defersLoading; | 255 bool m_defersLoading; |
| 253 | 256 |
| 254 float m_deviceScaleFactor; | 257 float m_deviceScaleFactor; |
| 255 | 258 |
| 256 double m_timerAlignmentInterval; | 259 double m_timerAlignmentInterval; |
| 257 | 260 |
| 258 PageVisibilityState m_visibilityState; | 261 PageVisibilityState m_visibilityState; |
| 259 | 262 |
| 260 bool m_isCursorVisible; | 263 bool m_isCursorVisible; |
| 261 | 264 |
| 262 #if ENABLE(ASSERT) | 265 #if ENABLE(ASSERT) |
| 263 bool m_isPainting; | 266 bool m_isPainting; |
| 264 #endif | 267 #endif |
| 265 | 268 |
| 266 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu
ltisamplingChangedObservers; | 269 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu
ltisamplingChangedObservers; |
| 267 | 270 |
| 268 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 271 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
| 269 // FIXME: Most of the members of Page should move onto FrameHost. | 272 // FIXME: Most of the members of Page should move onto FrameHost. |
| 270 OwnPtrWillBeMember<FrameHost> m_frameHost; | 273 OwnPtrWillBeMember<FrameHost> m_frameHost; |
| 271 }; | 274 }; |
| 272 | 275 |
| 273 } // namespace blink | 276 } // namespace blink |
| 274 | 277 |
| 275 #endif // Page_h | 278 #endif // Page_h |
| OLD | NEW |