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 99f2aa3433e4051de1d0b20b9571d2c1a71d742a..1ea010dedd143e04c260efd20cd75d704ae91884 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -228,6 +228,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
virtual void GotFocus(); |
virtual void LostCapture(); |
+ // Indicates whether the frame is currently focused. |
+ bool is_focused() const { return is_focused_; } |
+ |
// Called to notify the RenderWidget that it has lost the mouse lock. |
virtual void LostMouseLock(); |
@@ -841,6 +844,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
// object does not self destroy. |
bool owned_by_render_frame_host_; |
+ // Indicates whether this frame is focused. This is trying to match what the |
+ // renderer process knows. It is different from RenderWidgetHostView::HasFocus |
+ // in that regard. |
Charlie Reis
2015/02/02 18:34:49
Please be more specific here: when is different fr
|
+ bool is_focused_; |
+ |
base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |