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