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/CoreExport.h" | 24 #include "core/CoreExport.h" |
25 #include "core/dom/ViewportDescription.h" | 25 #include "core/dom/ViewportDescription.h" |
26 #include "core/frame/Deprecation.h" | |
27 #include "core/frame/LocalFrame.h" | 26 #include "core/frame/LocalFrame.h" |
28 #include "core/frame/OriginsUsingFeatures.h" | 27 #include "core/frame/OriginsUsingFeatures.h" |
29 #include "core/frame/SettingsDelegate.h" | 28 #include "core/frame/SettingsDelegate.h" |
30 #include "core/frame/UseCounter.h" | 29 #include "core/frame/UseCounter.h" |
31 #include "core/page/Page.h" | 30 #include "core/page/Page.h" |
32 #include "core/page/PageAnimator.h" | 31 #include "core/page/PageAnimator.h" |
33 #include "core/page/PageLifecycleNotifier.h" | 32 #include "core/page/PageLifecycleNotifier.h" |
34 #include "core/page/PageLifecycleObserver.h" | 33 #include "core/page/PageLifecycleObserver.h" |
35 #include "core/page/PageVisibilityState.h" | 34 #include "core/page/PageVisibilityState.h" |
36 #include "platform/MemoryPurgeController.h" | 35 #include "platform/MemoryPurgeController.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 void setValidationMessageClient(PassOwnPtrWillBeRawPtr<ValidationMessageClie
nt>); | 156 void setValidationMessageClient(PassOwnPtrWillBeRawPtr<ValidationMessageClie
nt>); |
158 | 157 |
159 ScrollingCoordinator* scrollingCoordinator(); | 158 ScrollingCoordinator* scrollingCoordinator(); |
160 | 159 |
161 String mainThreadScrollingReasonsAsText(); | 160 String mainThreadScrollingReasonsAsText(); |
162 ClientRectList* nonFastScrollableRects(const LocalFrame*); | 161 ClientRectList* nonFastScrollableRects(const LocalFrame*); |
163 | 162 |
164 Settings& settings() const { return *m_settings; } | 163 Settings& settings() const { return *m_settings; } |
165 | 164 |
166 UseCounter& useCounter() { return m_useCounter; } | 165 UseCounter& useCounter() { return m_useCounter; } |
167 Deprecation& deprecation() { return m_deprecation; } | |
168 OriginsUsingFeatures& originsUsingFeatures() { return m_originsUsingFeatures
; } | 166 OriginsUsingFeatures& originsUsingFeatures() { return m_originsUsingFeatures
; } |
169 | 167 |
170 void setTabKeyCyclesThroughElements(bool b) { m_tabKeyCyclesThroughElements
= b; } | 168 void setTabKeyCyclesThroughElements(bool b) { m_tabKeyCyclesThroughElements
= b; } |
171 bool tabKeyCyclesThroughElements() const { return m_tabKeyCyclesThroughEleme
nts; } | 169 bool tabKeyCyclesThroughElements() const { return m_tabKeyCyclesThroughEleme
nts; } |
172 | 170 |
173 void unmarkAllTextMatches(); | 171 void unmarkAllTextMatches(); |
174 | 172 |
175 // DefersLoading is used to delay loads during modal dialogs. | 173 // DefersLoading is used to delay loads during modal dialogs. |
176 // Modal dialogs are supposed to freeze all background processes | 174 // Modal dialogs are supposed to freeze all background processes |
177 // in the page, including prevent additional loads from staring/continuing. | 175 // in the page, including prevent additional loads from staring/continuing. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // longer needed. | 261 // longer needed. |
264 RawPtrWillBeMember<Frame> m_mainFrame; | 262 RawPtrWillBeMember<Frame> m_mainFrame; |
265 | 263 |
266 mutable RefPtr<PluginData> m_pluginData; | 264 mutable RefPtr<PluginData> m_pluginData; |
267 | 265 |
268 EditorClient* const m_editorClient; | 266 EditorClient* const m_editorClient; |
269 SpellCheckerClient* const m_spellCheckerClient; | 267 SpellCheckerClient* const m_spellCheckerClient; |
270 OwnPtrWillBeMember<ValidationMessageClient> m_validationMessageClient; | 268 OwnPtrWillBeMember<ValidationMessageClient> m_validationMessageClient; |
271 | 269 |
272 UseCounter m_useCounter; | 270 UseCounter m_useCounter; |
273 Deprecation m_deprecation; | |
274 OriginsUsingFeatures m_originsUsingFeatures; | 271 OriginsUsingFeatures m_originsUsingFeatures; |
275 | 272 |
276 bool m_openedByDOM; | 273 bool m_openedByDOM; |
277 | 274 |
278 bool m_tabKeyCyclesThroughElements; | 275 bool m_tabKeyCyclesThroughElements; |
279 bool m_defersLoading; | 276 bool m_defersLoading; |
280 | 277 |
281 float m_deviceScaleFactor; | 278 float m_deviceScaleFactor; |
282 | 279 |
283 PageVisibilityState m_visibilityState; | 280 PageVisibilityState m_visibilityState; |
(...skipping 13 matching lines...) Expand all Loading... |
297 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController; | 294 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController; |
298 | 295 |
299 Timer<Page> m_timerForCompressStrings; | 296 Timer<Page> m_timerForCompressStrings; |
300 }; | 297 }; |
301 | 298 |
302 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; | 299 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; |
303 | 300 |
304 } // namespace blink | 301 } // namespace blink |
305 | 302 |
306 #endif // Page_h | 303 #endif // Page_h |
OLD | NEW |