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

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: address comments 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 081629584dddc91800761c72249d52e342152ce7..d45a8c272a522ae58e4300aaea154614bde51f18 100644
--- a/public/web/WebView.h
+++ b/public/web/WebView.h
@@ -176,6 +176,9 @@ 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) { }
+
// 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