| Index: third_party/WebKit/public/web/WebView.h
|
| diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h
|
| index d25040cf7bcebc4c889663ece89737b0b2990b08..0bdf659011ff6fcfffdfb5006282fdfccc7b6acf 100644
|
| --- a/third_party/WebKit/public/web/WebView.h
|
| +++ b/third_party/WebKit/public/web/WebView.h
|
| @@ -210,9 +210,11 @@ public:
|
| // send it.
|
| virtual void clearFocusedElement() = 0;
|
|
|
| - // Scrolls the node currently in focus into |rect|, where |rect| is in
|
| - // viewport space. Returns true if an animation was started.
|
| - virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; }
|
| + // If it is editable, scrolls the element currently in focus into |rect|,
|
| + // where |rect| is in viewport space. |willAnmiate| is set true if an
|
| + // animation was started.
|
| + // Returns false if there is currently no currently focused element.
|
| + virtual bool scrollFocusedEditableElementIntoRect(const WebRect&, bool& willAnimate) { return false; }
|
|
|
| // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|.
|
| virtual void smoothScroll(int targetX, int targetY, long durationMs) { }
|
|
|