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

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: compilation fix on Android/Mac 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
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 7b40b9da8db2ce29171cdd0deb5eb32f3fcfcf0d..7afb479bd773d3a9c8dc21b5940d2399179511d8 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -128,9 +128,10 @@ 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;
+ bool IsFocused() override;
// IPC::Sender
bool Send(IPC::Message* msg) override;
@@ -195,7 +196,7 @@ class CONTENT_EXPORT RenderFrameHostImpl
FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
// TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in
// the future, so update this accessor to return the right pointer.
- RenderWidgetHostImpl* GetRenderWidgetHost();
+ RenderWidgetHostImpl* GetRenderWidgetHost() const;
// This function is called when this is a swapped out RenderFrameHost that
// lives in the same process as the parent frame. The

Powered by Google App Engine
This is Rietveld 408576698