OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. |
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 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 , m_tabKeyCyclesThroughElements(true) | 128 , m_tabKeyCyclesThroughElements(true) |
129 , m_defersLoading(false) | 129 , m_defersLoading(false) |
130 , m_pageScaleFactor(1) | 130 , m_pageScaleFactor(1) |
131 , m_deviceScaleFactor(1) | 131 , m_deviceScaleFactor(1) |
132 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) | 132 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) |
133 , m_visibilityState(PageVisibilityStateVisible) | 133 , m_visibilityState(PageVisibilityStateVisible) |
134 , m_isCursorVisible(true) | 134 , m_isCursorVisible(true) |
135 #ifndef NDEBUG | 135 #ifndef NDEBUG |
136 , m_isPainting(false) | 136 , m_isPainting(false) |
137 #endif | 137 #endif |
| 138 , m_userGestureSeenSinceLastNavigation(false) |
138 , m_frameHost(FrameHost::create(*this)) | 139 , m_frameHost(FrameHost::create(*this)) |
139 { | 140 { |
140 ASSERT(m_editorClient); | 141 ASSERT(m_editorClient); |
141 | 142 |
142 ASSERT(!allPages().contains(this)); | 143 ASSERT(!allPages().contains(this)); |
143 allPages().add(this); | 144 allPages().add(this); |
144 | 145 |
145 #ifndef NDEBUG | 146 #ifndef NDEBUG |
146 pageCounter.increment(); | 147 pageCounter.increment(); |
147 #endif | 148 #endif |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN
ext()) { | 507 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN
ext()) { |
507 if (FrameView* view = frame->view()) | 508 if (FrameView* view = frame->view()) |
508 view->updateAcceleratedCompositingSettings(); | 509 view->updateAcceleratedCompositingSettings(); |
509 } | 510 } |
510 } | 511 } |
511 | 512 |
512 void Page::didCommitLoad(LocalFrame* frame) | 513 void Page::didCommitLoad(LocalFrame* frame) |
513 { | 514 { |
514 lifecycleNotifier().notifyDidCommitLoad(frame); | 515 lifecycleNotifier().notifyDidCommitLoad(frame); |
515 if (m_mainFrame == frame) { | 516 if (m_mainFrame == frame) { |
| 517 m_userGestureSeenSinceLastNavigation = false; |
516 useCounter().didCommitLoad(); | 518 useCounter().didCommitLoad(); |
517 m_inspectorController->didCommitLoadForMainFrame(); | 519 m_inspectorController->didCommitLoadForMainFrame(); |
518 } | 520 } |
519 } | 521 } |
520 | 522 |
521 PageLifecycleNotifier& Page::lifecycleNotifier() | 523 PageLifecycleNotifier& Page::lifecycleNotifier() |
522 { | 524 { |
523 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); | 525 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); |
524 } | 526 } |
525 | 527 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 , spellCheckerClient(0) | 575 , spellCheckerClient(0) |
574 , storageClient(0) | 576 , storageClient(0) |
575 { | 577 { |
576 } | 578 } |
577 | 579 |
578 Page::PageClients::~PageClients() | 580 Page::PageClients::~PageClients() |
579 { | 581 { |
580 } | 582 } |
581 | 583 |
582 } // namespace WebCore | 584 } // namespace WebCore |
OLD | NEW |