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

Unified Diff: services/ui/ws/display.cc

Issue 2190633002: Add flag to launch two displays for mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 4 years, 5 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 | « services/ui/display/platform_screen_impl_ozone.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index c723fc2adbc885c8f1921a912dc1fdc25c6fc271..f375d07c3bba7ecb12b50070168378bfe04cdcc7 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -315,13 +315,13 @@ void Display::OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
root_.reset(window_server_->CreateServerWindow(
display_manager()->GetAndAdvanceNextRootId(),
ServerWindow::Properties()));
- root_->SetBounds(gfx::Rect(new_metrics.size_in_pixels));
+ root_->SetBounds(new_metrics.bounds);
root_->SetVisible(true);
focus_controller_.reset(new FocusController(this, root_.get()));
focus_controller_->AddObserver(this);
InitWindowManagerDisplayRootsIfNecessary();
} else {
- root_->SetBounds(gfx::Rect(new_metrics.size_in_pixels));
+ root_->SetBounds(new_metrics.bounds);
const gfx::Rect wm_bounds(root_->bounds().size());
for (auto& pair : window_manager_display_root_map_)
pair.second->root()->SetBounds(wm_bounds);
« no previous file with comments | « services/ui/display/platform_screen_impl_ozone.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698