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

Unified Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Do not call ScrollFocusedEditableNodeIntoRect for OOPIFs. Created 4 years 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
Index: content/browser/renderer_host/render_view_host_delegate.h
diff --git a/content/browser/renderer_host/render_view_host_delegate.h b/content/browser/renderer_host/render_view_host_delegate.h
index b1709c349f5ed7739e66a4d3828b9ecd7651a125..2cdc4c3e5f07566714bd09f52c52c77d76bc3c34 100644
--- a/content/browser/renderer_host/render_view_host_delegate.h
+++ b/content/browser/renderer_host/render_view_host_delegate.h
@@ -231,6 +231,14 @@ class CONTENT_EXPORT RenderViewHostDelegate {
// Whether download UI should be hidden.
virtual bool HideDownloadUI() const;
+ // Whether the focused element on the page is editable. This returns true iff
+ // the focused frame has a focused editable element.
+ virtual bool IsFocusedElementEditable();
+
+ // Asks the delegate to clear the focused element. This will lead to an IPC to
+ // the focused RenderWidget.
+ virtual void ClearFocusedElement() {}
+
protected:
virtual ~RenderViewHostDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698