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

Unified Diff: Source/core/platform/ScrollableArea.h

Issue 15725009: Should be able to scroll text in <input> fields with touch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup from initial CR Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/ScrollableArea.h
diff --git a/Source/core/platform/ScrollableArea.h b/Source/core/platform/ScrollableArea.h
index 4b0b7b6654f9b27757e0a1910e78b97ba03960b0..4ed977e3438ce9722e4e71f275e41c28e7ae186e 100644
--- a/Source/core/platform/ScrollableArea.h
+++ b/Source/core/platform/ScrollableArea.h
@@ -40,6 +40,9 @@ class ScrollAnimator;
class ScrollableArea {
public:
+
+ // Allow the ScrollableArea to be scrolled when we don't have scrollbars (i.e. for an input text field)
+ bool touchScroll(ScrollDirection, ScrollGranularity, float multiplier = 1);
bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1);
void scrollToOffsetWithoutAnimation(const FloatPoint&);
void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset);

Powered by Google App Engine
This is Rietveld 408576698