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

Issue 2230963003: Fix window/display bounds with multiple windows in mus. (Closed)

Created:
4 years, 4 months ago by kylechar
Modified:
4 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, rjkroege, sadrul, Alex Z.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix window/display bounds with multiple windows in mus. Previously mus assumed that all displays and root windows had origin of (0, 0) and were the primary display. This doesn't work with multiple displays so use the proper display origin in screen space. Also keep track of the primary display id. This will ensure that root ServerWindows and ScreenMus have the correct bounds for each display. This does not handle resizing or removing displays correctly. BUG=625876, 614070 Committed: https://crrev.com/0dff8f03cb414500c273f158bff0635e977d206d Cr-Commit-Position: refs/heads/master@{#411385}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -53 lines) Patch
M services/ui/display/platform_screen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/display/platform_screen_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/display/platform_screen_impl.cc View 2 chunks +7 lines, -1 line 0 comments Download
M services/ui/display/platform_screen_impl_ozone.h View 3 chunks +9 lines, -1 line 0 comments Download
M services/ui/display/platform_screen_impl_ozone.cc View 1 4 chunks +40 lines, -33 lines 0 comments Download
M services/ui/service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/display.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M services/ui/ws/platform_display.h View 1 4 chunks +11 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display.cc View 1 3 chunks +21 lines, -5 lines 0 comments Download
M services/ui/ws/platform_display_init_params.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display_init_params.cc View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/ws/test_utils.cc View 3 chunks +15 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (8 generated)
kylechar
4 years, 4 months ago (2016-08-10 15:48:01 UTC) #3
sky
https://codereview.chromium.org/2230963003/diff/1/services/ui/display/platform_screen_impl_ozone.cc File services/ui/display/platform_screen_impl_ozone.cc (right): https://codereview.chromium.org/2230963003/diff/1/services/ui/display/platform_screen_impl_ozone.cc#newcode77 services/ui/display/platform_screen_impl_ozone.cc:77: std::set<uint64_t> all_displays_; 'all_displays_' -> 'all_displays' https://codereview.chromium.org/2230963003/diff/1/services/ui/display/platform_screen_impl_ozone.cc#newcode83 services/ui/display/platform_screen_impl_ozone.cc:83: if (displays_.find(id) ...
4 years, 4 months ago (2016-08-10 22:16:00 UTC) #4
kylechar
https://codereview.chromium.org/2230963003/diff/1/services/ui/display/platform_screen_impl_ozone.cc File services/ui/display/platform_screen_impl_ozone.cc (right): https://codereview.chromium.org/2230963003/diff/1/services/ui/display/platform_screen_impl_ozone.cc#newcode77 services/ui/display/platform_screen_impl_ozone.cc:77: std::set<uint64_t> all_displays_; On 2016/08/10 22:15:59, sky wrote: > 'all_displays_' ...
4 years, 4 months ago (2016-08-11 15:00:37 UTC) #5
sky
LGTM
4 years, 4 months ago (2016-08-11 17:03:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2230963003/20001
4 years, 4 months ago (2016-08-11 18:34:05 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-11 18:39:35 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 18:43:17 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0dff8f03cb414500c273f158bff0635e977d206d
Cr-Commit-Position: refs/heads/master@{#411385}

Powered by Google App Engine
This is Rietveld 408576698