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 |