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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 860393004: Expose whether a frame is focused to the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kenrb review comment Created 5 years, 11 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/browser/frame_host/frame_tree_node.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/browser/frame_host/frame_tree_node.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698