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

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

Issue 11418244: Order the GL overlays above windows if possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops, null check Created 8 years, 1 month 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_web_contents_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_view.h
diff --git a/content/public/browser/web_contents_view.h b/content/public/browser/web_contents_view.h
index d9849ee23c161d82b9dbcf8bc2c51f6e0616fbb3..45fe5c371449960bdb83e4d517808d68786b9e10 100644
--- a/content/public/browser/web_contents_view.h
+++ b/content/public/browser/web_contents_view.h
@@ -117,6 +117,16 @@ class CONTENT_EXPORT WebContentsView {
// Get the bounds of the View, relative to the parent.
virtual gfx::Rect GetViewBounds() const = 0;
+
+#if defined(OS_MACOSX)
+ // The web contents view assumes that its view will never be overlapped by
+ // another view (either partially or fully). This allows it to perform
+ // optimizations. If the view is in a view hierarchy where it might be
+ // overlapped by another view, notify the view by calling this with |true|
+ // before it draws for the first time. After the first draw, do not change
+ // this setting.
+ virtual void SetAllowOverlappingViews(bool overlapping) = 0;
+#endif
};
} // namespace content
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | content/test/test_web_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698