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

Unified Diff: public/web/WebView.h

Issue 1251473003: Add WebView API for smoothScroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use page scale animation 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
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebView.h
diff --git a/public/web/WebView.h b/public/web/WebView.h
index 40462065090ca19d4128f3192a6eb13260c3ea37..af9c1b7abc7630f069d756f7916a0a47b3d5dc5d 100644
--- a/public/web/WebView.h
+++ b/public/web/WebView.h
@@ -176,6 +176,10 @@ public:
// viewport space. Returns true if an animation was started.
virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; }
+
+ // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|.
+ virtual void smoothScroll(int targetX, int targetY, long durationMs);
jdduke (slow) 2015/07/27 15:49:02 I guess this handles all of pageDown/pageUp/reques
hush (inactive) 2015/07/28 00:16:06 yes. This handles all three. I use target position
+
// Advance the focus of the WebView forward to the next element or to the
// previous element in the tab sequence (if reverse is true).
virtual void advanceFocus(bool reverse) { }
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698