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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 void didCommitLoad(LocalFrame*); | 218 void didCommitLoad(LocalFrame*); |
219 | 219 |
220 static void networkStateChanged(bool online); | 220 static void networkStateChanged(bool online); |
221 PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier(); | 221 PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier(); |
222 | 222 |
223 void trace(Visitor*); | 223 void trace(Visitor*); |
224 | 224 |
225 void willBeDestroyed(); | 225 void willBeDestroyed(); |
226 | 226 |
| 227 // Note: m_userGestureSeenSinceLastNavigation is set to false on every page
navigation. |
| 228 void setUserGestureSeen() { m_userGestureSeenSinceLastNavigation = true; } |
| 229 bool userGestureSeenSinceLastNavigation() const { return m_userGestureSeenSi
nceLastNavigation; } |
| 230 |
227 protected: | 231 protected: |
228 PageLifecycleNotifier& lifecycleNotifier(); | 232 PageLifecycleNotifier& lifecycleNotifier(); |
229 | 233 |
230 private: | 234 private: |
231 void initGroup(); | 235 void initGroup(); |
232 | 236 |
233 #if ASSERT_DISABLED | 237 #if ASSERT_DISABLED |
234 void checkSubframeCountConsistency() const { } | 238 void checkSubframeCountConsistency() const { } |
235 #else | 239 #else |
236 void checkSubframeCountConsistency() const; | 240 void checkSubframeCountConsistency() const; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 double m_timerAlignmentInterval; | 287 double m_timerAlignmentInterval; |
284 | 288 |
285 PageVisibilityState m_visibilityState; | 289 PageVisibilityState m_visibilityState; |
286 | 290 |
287 bool m_isCursorVisible; | 291 bool m_isCursorVisible; |
288 | 292 |
289 #ifndef NDEBUG | 293 #ifndef NDEBUG |
290 bool m_isPainting; | 294 bool m_isPainting; |
291 #endif | 295 #endif |
292 | 296 |
| 297 bool m_userGestureSeenSinceLastNavigation; |
| 298 |
293 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; | 299 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; |
294 | 300 |
295 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 301 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
296 // FIXME: Most of the members of Page should move onto FrameHost. | 302 // FIXME: Most of the members of Page should move onto FrameHost. |
297 OwnPtr<FrameHost> m_frameHost; | 303 OwnPtr<FrameHost> m_frameHost; |
298 }; | 304 }; |
299 | 305 |
300 } // namespace WebCore | 306 } // namespace WebCore |
301 | 307 |
302 #endif // Page_h | 308 #endif // Page_h |
OLD | NEW |