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

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

Issue 2451143003: <webview>: Correctly shift focus between WebContents. (Closed)
Patch Set: Fix creis comments. Created 4 years, 1 month 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_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index b465089cac08585f0e7eeae35bcc98734867228d..6b5e92a43d055d871b9fffa42e3c0f03e09fbe6e 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -276,6 +276,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
// but it failed, thus HasFocus() returns false.
bool is_focused() const { return is_focused_; }
+ // Support for focus tracking on multi-WebContents cases. This will notify all
+ // renderers involved in a page about a page-level focus update. Users other
+ // than WebContents and RenderWidgetHost should use Focus()/Blur().
+ void SetPageFocus(bool focused);
+
// Called to notify the RenderWidget that it has lost the mouse lock.
void LostMouseLock();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698