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

Unified Diff: third_party/WebKit/public/web/WebView.h

Issue 1990553002: Remove RenderViewImpl::GetFocusedElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made Windows happy and brought back bool return because fake tests. Created 4 years, 7 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 | « third_party/WebKit/public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c8a6244d72ea5a619cad8632d597ea76f2af8d21 100644
--- a/third_party/WebKit/public/web/WebView.h
+++ b/third_party/WebKit/public/web/WebView.h
@@ -210,9 +210,10 @@ 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.
+ // Returns false if there is currently no currently focused element.
+ virtual bool scrollFocusedEditableElementIntoRect(const WebRect&) { return false; }
// Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|.
virtual void smoothScroll(int targetX, int targetY, long durationMs) { }
« no previous file with comments | « third_party/WebKit/public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698