| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 bool isCursorVisible() const; | 195 bool isCursorVisible() const; |
| 195 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } | 196 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } |
| 196 | 197 |
| 197 #ifndef NDEBUG | 198 #ifndef NDEBUG |
| 198 void setIsPainting(bool painting) { m_isPainting = painting; } | 199 void setIsPainting(bool painting) { m_isPainting = painting; } |
| 199 bool isPainting() const { return m_isPainting; } | 200 bool isPainting() const { return m_isPainting; } |
| 200 #endif | 201 #endif |
| 201 | 202 |
| 202 double timerAlignmentInterval() const; | 203 double timerAlignmentInterval() const; |
| 203 | 204 |
| 204 class MultisamplingChangedObserver { | 205 class MultisamplingChangedObserver : public WillBeGarbageCollectedMixin { |
| 205 public: | 206 public: |
| 206 virtual void multisamplingChanged(bool) = 0; | 207 virtual void multisamplingChanged(bool) = 0; |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); | 210 void addMultisamplingChangedObserver(MultisamplingChangedObserver*); |
| 210 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); | 211 void removeMultisamplingChangedObserver(MultisamplingChangedObserver*); |
| 211 | 212 |
| 212 void didCommitLoad(LocalFrame*); | 213 void didCommitLoad(LocalFrame*); |
| 213 | 214 |
| 214 static void networkStateChanged(bool online); | 215 static void networkStateChanged(bool online); |
| 215 PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier(); | 216 PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier(); |
| 216 | 217 |
| 217 void trace(Visitor*); | 218 void trace(Visitor*); |
| 218 | 219 void clearWeakMembers(Visitor*); |
| 219 void willBeDestroyed(); | 220 void willBeDestroyed(); |
| 220 | 221 |
| 221 protected: | 222 protected: |
| 222 PageLifecycleNotifier& lifecycleNotifier(); | 223 PageLifecycleNotifier& lifecycleNotifier(); |
| 223 | 224 |
| 224 private: | 225 private: |
| 225 void initGroup(); | 226 void initGroup(); |
| 226 | 227 |
| 227 #if ASSERT_DISABLED | 228 #if ASSERT_DISABLED |
| 228 void checkSubframeCountConsistency() const { } | 229 void checkSubframeCountConsistency() const { } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 double m_timerAlignmentInterval; | 275 double m_timerAlignmentInterval; |
| 275 | 276 |
| 276 PageVisibilityState m_visibilityState; | 277 PageVisibilityState m_visibilityState; |
| 277 | 278 |
| 278 bool m_isCursorVisible; | 279 bool m_isCursorVisible; |
| 279 | 280 |
| 280 #ifndef NDEBUG | 281 #ifndef NDEBUG |
| 281 bool m_isPainting; | 282 bool m_isPainting; |
| 282 #endif | 283 #endif |
| 283 | 284 |
| 284 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; | 285 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m
ultisamplingChangedObservers; |
| 285 | 286 |
| 286 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 287 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
| 287 // FIXME: Most of the members of Page should move onto FrameHost. | 288 // FIXME: Most of the members of Page should move onto FrameHost. |
| 288 OwnPtr<FrameHost> m_frameHost; | 289 OwnPtr<FrameHost> m_frameHost; |
| 289 }; | 290 }; |
| 290 | 291 |
| 291 } // namespace WebCore | 292 } // namespace WebCore |
| 292 | 293 |
| 293 #endif // Page_h | 294 #endif // Page_h |
| OLD | NEW |