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, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 void setVisibilityState(PageVisibilityState, bool); | 178 void setVisibilityState(PageVisibilityState, bool); |
179 | 179 |
180 bool isCursorVisible() const; | 180 bool isCursorVisible() const; |
181 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } | 181 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } |
182 | 182 |
183 #if ENABLE(ASSERT) | 183 #if ENABLE(ASSERT) |
184 void setIsPainting(bool painting) { m_isPainting = painting; } | 184 void setIsPainting(bool painting) { m_isPainting = painting; } |
185 bool isPainting() const { return m_isPainting; } | 185 bool isPainting() const { return m_isPainting; } |
186 #endif | 186 #endif |
187 | 187 |
188 double timerAlignmentInterval() const; | |
189 | |
190 class CORE_EXPORT MultisamplingChangedObserver : public WillBeGarbageCollect
edMixin { | 188 class CORE_EXPORT MultisamplingChangedObserver : public WillBeGarbageCollect
edMixin { |
191 public: | 189 public: |
192 virtual void multisamplingChanged(bool) = 0; | 190 virtual void multisamplingChanged(bool) = 0; |
193 }; | 191 }; |
194 | 192 |
195 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); | 193 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); |
196 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); | 194 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); |
197 | 195 |
198 void didCommitLoad(LocalFrame*); | 196 void didCommitLoad(LocalFrame*); |
199 | 197 |
200 void acceptLanguagesChanged(); | 198 void acceptLanguagesChanged(); |
201 | 199 |
202 static void networkStateChanged(bool online); | 200 static void networkStateChanged(bool online); |
203 | 201 |
204 MemoryPurgeController& memoryPurgeController(); | 202 MemoryPurgeController& memoryPurgeController(); |
205 | 203 |
206 void purgeMemory(MemoryPurgeMode, DeviceKind) override; | 204 void purgeMemory(MemoryPurgeMode, DeviceKind) override; |
207 | 205 |
208 DECLARE_TRACE(); | 206 DECLARE_TRACE(); |
209 | 207 |
210 void willCloseLayerTreeView(); | 208 void willCloseLayerTreeView(); |
211 void willBeDestroyed(); | 209 void willBeDestroyed(); |
212 | 210 |
213 private: | 211 private: |
214 void initGroup(); | 212 void initGroup(); |
215 | 213 |
216 void setTimerAlignmentInterval(double); | |
217 | |
218 void setNeedsLayoutInAllFrames(); | 214 void setNeedsLayoutInAllFrames(); |
219 | 215 |
220 // SettingsDelegate overrides. | 216 // SettingsDelegate overrides. |
221 void settingsChanged(SettingsDelegate::ChangeType) override; | 217 void settingsChanged(SettingsDelegate::ChangeType) override; |
222 | 218 |
223 RefPtrWillBeMember<PageAnimator> m_animator; | 219 RefPtrWillBeMember<PageAnimator> m_animator; |
224 const OwnPtrWillBeMember<AutoscrollController> m_autoscrollController; | 220 const OwnPtrWillBeMember<AutoscrollController> m_autoscrollController; |
225 RawPtrWillBeMember<ChromeClient> m_chromeClient; | 221 RawPtrWillBeMember<ChromeClient> m_chromeClient; |
226 const OwnPtrWillBeMember<DragCaretController> m_dragCaretController; | 222 const OwnPtrWillBeMember<DragCaretController> m_dragCaretController; |
227 const OwnPtrWillBeMember<DragController> m_dragController; | 223 const OwnPtrWillBeMember<DragController> m_dragController; |
(...skipping 26 matching lines...) Expand all Loading... |
254 UseCounter m_useCounter; | 250 UseCounter m_useCounter; |
255 OriginsUsingFeatures m_originsUsingFeatures; | 251 OriginsUsingFeatures m_originsUsingFeatures; |
256 | 252 |
257 bool m_openedByDOM; | 253 bool m_openedByDOM; |
258 | 254 |
259 bool m_tabKeyCyclesThroughElements; | 255 bool m_tabKeyCyclesThroughElements; |
260 bool m_defersLoading; | 256 bool m_defersLoading; |
261 | 257 |
262 float m_deviceScaleFactor; | 258 float m_deviceScaleFactor; |
263 | 259 |
264 double m_timerAlignmentInterval; | |
265 | |
266 PageVisibilityState m_visibilityState; | 260 PageVisibilityState m_visibilityState; |
267 | 261 |
268 bool m_isCursorVisible; | 262 bool m_isCursorVisible; |
269 | 263 |
270 #if ENABLE(ASSERT) | 264 #if ENABLE(ASSERT) |
271 bool m_isPainting; | 265 bool m_isPainting; |
272 #endif | 266 #endif |
273 | 267 |
274 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu
ltisamplingChangedObservers; | 268 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver>> m_mu
ltisamplingChangedObservers; |
275 | 269 |
276 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 270 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
277 // FIXME: Most of the members of Page should move onto FrameHost. | 271 // FIXME: Most of the members of Page should move onto FrameHost. |
278 OwnPtrWillBeMember<FrameHost> m_frameHost; | 272 OwnPtrWillBeMember<FrameHost> m_frameHost; |
279 | 273 |
280 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController; | 274 OwnPtrWillBeMember<MemoryPurgeController> m_memoryPurgeController; |
281 }; | 275 }; |
282 | 276 |
283 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; | 277 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; |
284 | 278 |
285 } // namespace blink | 279 } // namespace blink |
286 | 280 |
287 #endif // Page_h | 281 #endif // Page_h |
OLD | NEW |