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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index 5dad2d6a5848488d5f6b2a65e3bfb5736a56ed8d..a2154f5e4b3b64f4d7cb39c1be41c7493a77cb46 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -173,6 +173,11 @@ public interface WebContents extends Parcelable {
void scrollFocusedEditableNodeIntoView();
/**
+ * Smooth scroll to target position within the duration.
+ */
jdduke (slow) 2015/07/28 15:54:31 Nit: Javadoc for params
hush (inactive) 2015/07/28 21:36:46 Done.
+ void smoothScroll(int targetX, int targetY, long durationMs);
+
+ /**
* Selects the word around the caret, if any.
* The caller can check if selection actually occurred by listening to OnSelectionChanged.
*/

Powered by Google App Engine
This is Rietveld 408576698