Chromium Code Reviews| 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) { } |