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

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

Issue 871443004: Expose the visibility state of a frame to the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_isfocused
Patch Set: remove from RFH 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 afeeef98b1b0f6b4e9d51b3ade4b8a8213639b7c..92205faea9966b328fcfc19950d9de7d4fdac4db 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -397,6 +397,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// RenderWidgetHost is also focused.
bool IsFocused() const;
+ // Returns the visibility state of the frame. The different visibility states
+ // of a frame a define in Blink.
Charlie Reis 2015/01/22 21:03:55 nit: are defined
mlamouri (slow - plz ping) 2015/01/23 12:32:58 Sorry for those typos :(
+ blink::WebPageVisibilityState GetVisibilityState();
+
protected:
friend class RenderFrameHostFactory;

Powered by Google App Engine
This is Rietveld 408576698