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

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

Issue 137483007: [DevTools] Use special resizing strategy instead of insets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed more comments 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
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index b86e84803df6718bbbc3f9f971c95c91a76cb34c..8d8a27130b1e41cc2f254334dc83360113e232af 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2141,11 +2141,12 @@ void BrowserView::UpdateDevToolsForContents(
if (devtools_window_) {
devtools_web_view_->SetPreferredSize(devtools_window_->GetMinimumSize());
devtools_web_view_->SetVisible(true);
- GetContentsLayoutManager()->SetContentsViewInsets(
- devtools_window_->GetContentsInsets());
+ GetContentsLayoutManager()->SetContentsResizingStrategy(
+ devtools_window_->GetContentsResizingStrategy());
} else {
devtools_web_view_->SetVisible(false);
- GetContentsLayoutManager()->SetContentsViewInsets(gfx::Insets());
+ GetContentsLayoutManager()->SetContentsResizingStrategy(
+ DevToolsContentsResizingStrategy());
}
contents_container_->Layout();
}
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/views/frame/contents_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698