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 13 matching lines...) Expand all Loading... |
24 #include "core/dom/ViewportDescription.h" | 24 #include "core/dom/ViewportDescription.h" |
25 #include "core/frame/SettingsDelegate.h" | 25 #include "core/frame/SettingsDelegate.h" |
26 #include "core/frame/UseCounter.h" | 26 #include "core/frame/UseCounter.h" |
27 #include "core/page/HistoryController.h" | 27 #include "core/page/HistoryController.h" |
28 #include "core/page/PageAnimator.h" | 28 #include "core/page/PageAnimator.h" |
29 #include "core/page/PageVisibilityState.h" | 29 #include "core/page/PageVisibilityState.h" |
30 #include "platform/LifecycleContext.h" | 30 #include "platform/LifecycleContext.h" |
31 #include "platform/Supplementable.h" | 31 #include "platform/Supplementable.h" |
32 #include "platform/geometry/LayoutRect.h" | 32 #include "platform/geometry/LayoutRect.h" |
33 #include "platform/geometry/Region.h" | 33 #include "platform/geometry/Region.h" |
| 34 #include "platform/heap/Handle.h" |
34 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
35 #include "wtf/HashSet.h" | 36 #include "wtf/HashSet.h" |
36 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
37 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
38 | 39 |
39 namespace WebCore { | 40 namespace WebCore { |
40 | 41 |
41 class AutoscrollController; | 42 class AutoscrollController; |
42 class BackForwardClient; | 43 class BackForwardClient; |
43 class Chrome; | 44 class Chrome; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 bool isCursorVisible() const { return m_isCursorVisible; } | 200 bool isCursorVisible() const { return m_isCursorVisible; } |
200 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } | 201 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } |
201 | 202 |
202 #ifndef NDEBUG | 203 #ifndef NDEBUG |
203 void setIsPainting(bool painting) { m_isPainting = painting; } | 204 void setIsPainting(bool painting) { m_isPainting = painting; } |
204 bool isPainting() const { return m_isPainting; } | 205 bool isPainting() const { return m_isPainting; } |
205 #endif | 206 #endif |
206 | 207 |
207 double timerAlignmentInterval() const; | 208 double timerAlignmentInterval() const; |
208 | 209 |
209 class MultisamplingChangedObserver { | 210 class MultisamplingChangedObserver : public WillBeGarbageCollectedMixin { |
210 public: | 211 public: |
211 virtual void multisamplingChanged(bool) = 0; | 212 virtual void multisamplingChanged(bool) = 0; |
212 }; | 213 }; |
213 | 214 |
214 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); | 215 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); |
215 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); | 216 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); |
216 | 217 |
217 void didCommitLoad(LocalFrame*); | 218 void didCommitLoad(LocalFrame*); |
218 | 219 |
219 static void networkStateChanged(bool online); | 220 static void networkStateChanged(bool online); |
220 PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier(); | 221 PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier(); |
221 | 222 |
222 virtual void trace(Visitor*); | 223 virtual void trace(Visitor*); |
223 | 224 void clearWeakMembers(Visitor*); |
224 void willBeDestroyed(); | 225 void willBeDestroyed(); |
225 | 226 |
226 protected: | 227 protected: |
227 PageLifecycleNotifier& lifecycleNotifier(); | 228 PageLifecycleNotifier& lifecycleNotifier(); |
228 | 229 |
229 private: | 230 private: |
230 void initGroup(); | 231 void initGroup(); |
231 | 232 |
232 #if ASSERT_DISABLED | 233 #if ASSERT_DISABLED |
233 void checkSubframeCountConsistency() const { } | 234 void checkSubframeCountConsistency() const { } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 double m_timerAlignmentInterval; | 283 double m_timerAlignmentInterval; |
283 | 284 |
284 PageVisibilityState m_visibilityState; | 285 PageVisibilityState m_visibilityState; |
285 | 286 |
286 bool m_isCursorVisible; | 287 bool m_isCursorVisible; |
287 | 288 |
288 #ifndef NDEBUG | 289 #ifndef NDEBUG |
289 bool m_isPainting; | 290 bool m_isPainting; |
290 #endif | 291 #endif |
291 | 292 |
292 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; | 293 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m
ultisamplingChangedObservers; |
293 | 294 |
294 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 295 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
295 // FIXME: Most of the members of Page should move onto FrameHost. | 296 // FIXME: Most of the members of Page should move onto FrameHost. |
296 OwnPtr<FrameHost> m_frameHost; | 297 OwnPtr<FrameHost> m_frameHost; |
297 }; | 298 }; |
298 | 299 |
299 } // namespace WebCore | 300 } // namespace WebCore |
300 | 301 |
301 #endif // Page_h | 302 #endif // Page_h |
OLD | NEW |