Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2408333004: Move persistent gesture state to Document, add DocumentUserGestureToken (Closed)
Patch Set: Re-add dropped null check Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All
3 * Rights Reserved. 3 * Rights Reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 deprecation().clearSuppression(); 456 deprecation().clearSuppression();
457 frameHost().visualViewport().sendUMAMetrics(); 457 frameHost().visualViewport().sendUMAMetrics();
458 458
459 // Need to reset visual viewport position here since before commit load we 459 // Need to reset visual viewport position here since before commit load we
460 // would update the previous history item, Page::didCommitLoad is called 460 // would update the previous history item, Page::didCommitLoad is called
461 // after a new history item is created in FrameLoader. 461 // after a new history item is created in FrameLoader.
462 // See crbug.com/642279 462 // See crbug.com/642279
463 frameHost().visualViewport().setScrollOffset(ScrollOffset(), 463 frameHost().visualViewport().setScrollOffset(ScrollOffset(),
464 ProgrammaticScroll); 464 ProgrammaticScroll);
465 m_hostsUsingFeatures.updateMeasurementsAndClear(); 465 m_hostsUsingFeatures.updateMeasurementsAndClear();
466 UserGestureIndicator::clearProcessedUserGestureSinceLoad();
467 } 466 }
468 } 467 }
469 468
470 void Page::acceptLanguagesChanged() { 469 void Page::acceptLanguagesChanged() {
471 HeapVector<Member<LocalFrame>> frames; 470 HeapVector<Member<LocalFrame>> frames;
472 471
473 // Even though we don't fire an event from here, the LocalDOMWindow's will 472 // Even though we don't fire an event from here, the LocalDOMWindow's will
474 // fire an event so we keep the frames alive until we are done. 473 // fire an event so we keep the frames alive until we are done.
475 for (Frame* frame = mainFrame(); frame; 474 for (Frame* frame = mainFrame(); frame;
476 frame = frame->tree().traverseNext()) { 475 frame = frame->tree().traverseNext()) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 : chromeClient(nullptr), 536 : chromeClient(nullptr),
538 contextMenuClient(nullptr), 537 contextMenuClient(nullptr),
539 editorClient(nullptr), 538 editorClient(nullptr),
540 spellCheckerClient(nullptr) {} 539 spellCheckerClient(nullptr) {}
541 540
542 Page::PageClients::~PageClients() {} 541 Page::PageClients::~PageClients() {}
543 542
544 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 543 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
545 544
546 } // namespace blink 545 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698