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

Unified Diff: chrome/browser/ui/views/frame/browser_view_layout.cc

Issue 169403004: Center browser dialogs with respect to docked devtools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view_layout.cc
diff --git a/chrome/browser/ui/views/frame/browser_view_layout.cc b/chrome/browser/ui/views/frame/browser_view_layout.cc
index 9f2d995e25ff68fad3fa4b286e0624f7ab0fd16a..7f22c404cbc19c63df8397e28b3170521e5b2a27 100644
--- a/chrome/browser/ui/views/frame/browser_view_layout.cc
+++ b/chrome/browser/ui/views/frame/browser_view_layout.cc
@@ -79,7 +79,7 @@ class BrowserViewLayout::WebContentsModalDialogHostViews
}
virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE {
- views::View* view = browser_view_layout_->delegate_->GetContentsWebView();
+ views::View* view = browser_view_layout_->contents_container_;
dgozman 2014/02/17 16:03:03 You want devtools_web_view_ from BrowserView here.
lushnikov 2014/02/18 18:17:06 Left as-is due to offline discussion.
gfx::Rect content_area = view->ConvertRectToWidget(view->GetLocalBounds());
const int middle_x = content_area.x() + content_area.width() / 2;
const int top = browser_view_layout_->web_contents_modal_dialog_top_y_;
@@ -87,7 +87,7 @@ class BrowserViewLayout::WebContentsModalDialogHostViews
}
virtual gfx::Size GetMaximumDialogSize() OVERRIDE {
- views::View* view = browser_view_layout_->delegate_->GetContentsWebView();
+ views::View* view = browser_view_layout_->contents_container_;
gfx::Rect content_area = view->ConvertRectToWidget(view->GetLocalBounds());
const int top = browser_view_layout_->web_contents_modal_dialog_top_y_;
return gfx::Size(content_area.width(), content_area.bottom() - top);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698