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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2289213002: Implement Middle Click Autoscroll on all platforms not just Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into panscroll Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } 762 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); }
763 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } 763 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); }
764 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); 764 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&);
765 bool canBeScrolledAndHasScrollableArea() const; 765 bool canBeScrolledAndHasScrollableArea() const;
766 virtual bool canBeProgramaticallyScrolled() const; 766 virtual bool canBeProgramaticallyScrolled() const;
767 virtual void autoscroll(const IntPoint&); 767 virtual void autoscroll(const IntPoint&);
768 bool canAutoscroll() const; 768 bool canAutoscroll() const;
769 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ; 769 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ;
770 static LayoutBox* findAutoscrollable(LayoutObject*); 770 static LayoutBox* findAutoscrollable(LayoutObject*);
771 virtual void stopAutoscroll() { } 771 virtual void stopAutoscroll() { }
772 virtual void panScroll(const IntPoint&); 772 virtual void middleClickAutoscroll(const IntPoint&);
773 773
774 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const { return hasOverflowC lip() && (style()->overflowY() == OverflowAuto || style()->overflowY() == Overfl owPagedY || style()->overflowY() == OverflowOverlay); } 774 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const { return hasOverflowC lip() && (style()->overflowY() == OverflowAuto || style()->overflowY() == Overfl owPagedY || style()->overflowY() == OverflowOverlay); }
775 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const { return hasOverflo wClip() && (style()->overflowX() == OverflowAuto || style()->overflowX() == Over flowOverlay); } 775 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const { return hasOverflo wClip() && (style()->overflowX() == OverflowAuto || style()->overflowX() == Over flowOverlay); }
776 DISABLE_CFI_PERF bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY(); } 776 DISABLE_CFI_PERF bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY(); }
777 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { retur n style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); } 777 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { retur n style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); }
778 778
779 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap pedScrollWidth() != pixelSnappedClientWidth(); } 779 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap pedScrollWidth() != pixelSnappedClientWidth(); }
780 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap pedScrollHeight() != pixelSnappedClientHeight(); } 780 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap pedScrollHeight() != pixelSnappedClientHeight(); }
781 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style() ->overflowX() == OverflowScroll || hasAutoHorizontalScrollbar()); } 781 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style() ->overflowX() == OverflowScroll || hasAutoHorizontalScrollbar()); }
782 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style() ->overflowY() == OverflowScroll || hasAutoVerticalScrollbar()); } 782 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style() ->overflowY() == OverflowScroll || hasAutoVerticalScrollbar()); }
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 || breakValue == BreakLeft 1216 || breakValue == BreakLeft
1217 || breakValue == BreakPage 1217 || breakValue == BreakPage
1218 || breakValue == BreakRecto 1218 || breakValue == BreakRecto
1219 || breakValue == BreakRight 1219 || breakValue == BreakRight
1220 || breakValue == BreakVerso; 1220 || breakValue == BreakVerso;
1221 } 1221 }
1222 1222
1223 } // namespace blink 1223 } // namespace blink
1224 1224
1225 #endif // LayoutBox_h 1225 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/ScrollManager.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698