Index: content/browser/frame_host/render_frame_host_impl.h |
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
index e9649758eed0a210b94fe3583e3a8e901f5476be..c9193a3080131997b6b1f299a898d078efba9ae2 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -134,9 +134,9 @@ class CONTENT_EXPORT RenderFrameHostImpl |
void ExecuteJavaScript(const base::string16& javascript, |
const JavaScriptResultCallback& callback) override; |
void ExecuteJavaScriptForTests(const base::string16& javascript) override; |
+ void ActivateFindInPageResultForAccessibility(int request_id) override; |
RenderViewHost* GetRenderViewHost() override; |
ServiceRegistry* GetServiceRegistry() override; |
- void ActivateFindInPageResultForAccessibility(int request_id) override; |
// IPC::Sender |
bool Send(IPC::Message* msg) override; |
@@ -405,6 +405,11 @@ class CONTENT_EXPORT RenderFrameHostImpl |
// this instance and its associated render frame. |
void InvalidateMojoConnection(); |
+ // Returns whether the frame is focused. A frame is considered focused when it |
+ // is the parent chain of the focused frame within the frame tree. In |
+ // addition, its associated RenderWidgetHostView has to be focused. |
+ bool IsFocused(); |
+ |
protected: |
friend class RenderFrameHostFactory; |