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 |