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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 853883007: Add occlusion support to WebContentsImpl and RenderWidgetHostView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback 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/web_contents/web_contents_view_mac.mm ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host_view.h
diff --git a/content/public/browser/render_widget_host_view.h b/content/public/browser/render_widget_host_view.h
index 6d97fd898ef8fba1ae5dc1034ab169d6deddc8ee..8758c501ba35c666223df574a394f583d5483bed 100644
--- a/content/public/browser/render_widget_host_view.h
+++ b/content/public/browser/render_widget_host_view.h
@@ -93,6 +93,14 @@ class CONTENT_EXPORT RenderWidgetHostView {
// Whether the view is showing.
virtual bool IsShowing() = 0;
+ // Indicates if the view is currently occluded (e.g, not visible because it's
+ // covered up by other windows on Mac), and as a result the view's renderer
Avi (use Gerrit) 2015/01/16 21:47:11 Occlusion is a phenomenon that happens on all plat
ccameron 2015/01/16 21:54:07 Updated (I left a sentence at the end saying it's
+ // may be suspended. If Show() is called on a view then its state should be
+ // re-set to being un-occluded (an explicit WasUnOccluded call will not be
+ // made for that). These calls are not necessarily made in pairs.
+ virtual void WasUnOccluded() = 0;
+ virtual void WasOccluded() = 0;
+
// Retrieve the bounds of the View, in screen coordinates.
virtual gfx::Rect GetViewBounds() const = 0;
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698