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

Unified Diff: content/browser/web_contents/web_contents_view_mac.mm

Issue 468193005: Remove SetAllowOverlappingView from RWHVMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_ca_flag
Patch Set: Created 6 years, 4 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.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_mac.mm
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm
index 48d3cca1f447090e362f2608bd11f5faf7ada872..3dfc402b34043b62387b7cc7209a251a8872eba3 100644
--- a/content/browser/web_contents/web_contents_view_mac.mm
+++ b/content/browser/web_contents/web_contents_view_mac.mm
@@ -81,7 +81,6 @@ WebContentsViewMac::WebContentsViewMac(WebContentsImpl* web_contents,
WebContentsViewDelegate* delegate)
: web_contents_(web_contents),
delegate_(delegate),
- allow_overlapping_views_(false),
allow_other_views_(false) {
}
@@ -262,21 +261,6 @@ gfx::Rect WebContentsViewMac::GetViewBounds() const {
return gfx::Rect();
}
-void WebContentsViewMac::SetAllowOverlappingViews(bool overlapping) {
- if (allow_overlapping_views_ == overlapping)
- return;
-
- allow_overlapping_views_ = overlapping;
- RenderWidgetHostViewMac* view = static_cast<RenderWidgetHostViewMac*>(
- web_contents_->GetRenderWidgetHostView());
- if (view)
- view->SetAllowOverlappingViews(allow_overlapping_views_);
-}
-
-bool WebContentsViewMac::GetAllowOverlappingViews() const {
- return allow_overlapping_views_;
-}
-
void WebContentsViewMac::SetAllowOtherViews(bool allow) {
if (allow_other_views_ == allow)
return;
@@ -321,7 +305,6 @@ RenderWidgetHostViewBase* WebContentsViewMac::CreateViewForWidget(
view->SetDelegate(rw_delegate.get());
}
- view->SetAllowOverlappingViews(allow_overlapping_views_);
view->SetAllowPauseForResizeOrRepaint(!allow_other_views_);
// Fancy layout comes later; for now just make it our size and resize it
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698