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