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

Side by Side Diff: Source/core/frame/LocalFrame.cpp

Issue 1161713004: Rename ScrollableArea::scroll to userScroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed comment Created 5 years, 6 months 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
« no previous file with comments | « no previous file | Source/core/frame/RootFrameViewport.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 return loader().stateMachine()->isDisplayingInitialEmptyDocument() && docume nt()->isSecureTransitionTo(url); 708 return loader().stateMachine()->isDisplayingInitialEmptyDocument() && docume nt()->isSecureTransitionTo(url);
709 } 709 }
710 710
711 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words) 711 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words)
712 { 712 {
713 spellChecker().removeSpellingMarkersUnderWords(words); 713 spellChecker().removeSpellingMarkersUnderWords(words);
714 } 714 }
715 715
716 static bool scrollAreaOnBothAxes(const FloatSize& delta, ScrollableArea& view) 716 static bool scrollAreaOnBothAxes(const FloatSize& delta, ScrollableArea& view)
717 { 717 {
718 bool scrolledHorizontal = view.scroll(ScrollLeft, ScrollByPrecisePixel, delt a.width()); 718 bool scrolledHorizontal = view.userScroll(ScrollLeft, ScrollByPrecisePixel, delta.width());
719 bool scrolledVertical = view.scroll(ScrollUp, ScrollByPrecisePixel, delta.he ight()); 719 bool scrolledVertical = view.userScroll(ScrollUp, ScrollByPrecisePixel, delt a.height());
720 return scrolledHorizontal || scrolledVertical; 720 return scrolledHorizontal || scrolledVertical;
721 } 721 }
722 722
723 // Returns true if a scroll occurred. 723 // Returns true if a scroll occurred.
724 bool LocalFrame::applyScrollDelta(const FloatSize& delta, bool isScrollBegin) 724 bool LocalFrame::applyScrollDelta(const FloatSize& delta, bool isScrollBegin)
725 { 725 {
726 if (isScrollBegin) 726 if (isScrollBegin)
727 host()->topControls().scrollBegin(); 727 host()->topControls().scrollBegin();
728 728
729 if (!view() || delta.isZero()) 729 if (!view() || delta.isZero())
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 , m_textZoomFactor(parentTextZoomFactor(this)) 812 , m_textZoomFactor(parentTextZoomFactor(this))
813 , m_inViewSourceMode(false) 813 , m_inViewSourceMode(false)
814 { 814 {
815 if (isLocalRoot()) 815 if (isLocalRoot())
816 m_instrumentingAgents = InstrumentingAgents::create(); 816 m_instrumentingAgents = InstrumentingAgents::create();
817 else 817 else
818 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; 818 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents;
819 } 819 }
820 820
821 } // namespace blink 821 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/RootFrameViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698