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

Unified Diff: content/renderer/render_view_impl.h

Issue 1400003003: Move has_focus_ tracking from RenderWidget to RenderView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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 | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 805dc0742634039f9ff6b68e7eadc99603a88546..2586931bf562a7b643123a58a6530392d7bc2e58 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -232,6 +232,9 @@ class CONTENT_EXPORT RenderViewImpl
// as that is only for changes that aren't initiated by the client.
void SetZoomLevel(double zoom_level);
+ // Indicates whether this page has been focused by the browser.
+ bool has_focus() const { return has_focus_; }
+
// Plugin-related functions --------------------------------------------------
#if defined(ENABLE_PLUGINS)
@@ -873,6 +876,9 @@ class CONTENT_EXPORT RenderViewImpl
TopControlsState top_controls_constraints_;
#endif
+ // Indicates whether this page has been focused/unfocused by the browser.
+ bool has_focus_;
+
// View ----------------------------------------------------------------------
// Cache the preferred size of the page in order to prevent sending the IPC
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698