Index: content/public/browser/render_frame_host.h |
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h |
index 43ae82b1e8e6366c935b312f441de0f92be8ac82..0eb50bfe8d2be5453f92c15b56fcf451cda1f36b 100644 |
--- a/content/public/browser/render_frame_host.h |
+++ b/content/public/browser/render_frame_host.h |
@@ -99,6 +99,11 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, |
// Returns the ServiceRegistry for this frame. |
virtual ServiceRegistry* GetServiceRegistry() = 0; |
+ // Returns whether the frame is focused. A frame is considered focused when it |
+ // is the focused frame with in its frame tree and its associated |
+ // RenderWidgetHost is also focused. |
+ virtual bool IsFocused() const = 0; |
Charlie Reis
2015/01/21 23:38:50
Per the Content API guidelines, no const in public
|
+ |
private: |
// This interface should only be implemented inside content. |
friend class RenderFrameHostImpl; |