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

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

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Fixed some compile errors 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 a5d1d095265d27bf224d3da24ba49034082fd2ed..ad4c41670cb8f914e08378f1685cef453a2cda34 100644
--- a/content/browser/renderer_host/render_view_host_delegate.h
+++ b/content/browser/renderer_host/render_view_host_delegate.h
@@ -230,6 +230,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(){};
ncarter (slow) 2016/12/16 19:17:21 space before {}
EhsanK 2016/12/20 16:39:10 Thanks! I think the ; thew git cl format off.
+
protected:
virtual ~RenderViewHostDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698