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

Issue 2461513002: Primary display change notifications. (Closed)

Created:
4 years, 1 month ago by kylechar
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, sky
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle primary display changes in mustash. This CL adds code to propagate the primary display id from PlatformScreen to the WS, then from the WS to all mus clients. 1. Rename display.mojom to display_manager.mojom to reflect the main interface name. 2. Add primary and internal display id to the OnDisplays() message. 3. Add OnPrimaryDisplayChanged() message for when the primary display changes. 4. Improve platform_screen_ozone_unittests. Track the ordering of events to ensure the expected events happen in the expected order. 5. Fix some ordering problems with PlatformScreenOzone. BUG=657125 Committed: https://crrev.com/100dccedb99065973e21ecf0661d123e719784e1 Cr-Commit-Position: refs/heads/master@{#428517}

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 17

Patch Set 3 : Fixes for sky. #

Total comments: 4

Patch Set 4 : More fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -190 lines) Patch
M services/ui/display/platform_screen_delegate.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/display/platform_screen_ozone.h View 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/display/platform_screen_ozone.cc View 1 2 5 chunks +21 lines, -15 lines 0 comments Download
M services/ui/display/platform_screen_ozone_unittests.cc View 1 2 3 11 chunks +91 lines, -71 lines 0 comments Download
M services/ui/public/interfaces/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
D services/ui/public/interfaces/display.mojom View 1 chunk +0 lines, -25 lines 0 comments Download
A + services/ui/public/interfaces/display_manager.mojom View 1 2 2 chunks +12 lines, -3 lines 0 comments Download
M services/ui/public/interfaces/window_manager_constants.mojom View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/service.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/display.h View 1 1 chunk +1 line, -5 lines 0 comments Download
M services/ui/ws/display.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M services/ui/ws/display_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/display_manager.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/user_display_manager.h View 1 3 chunks +10 lines, -4 lines 0 comments Download
M services/ui/ws/user_display_manager.cc View 1 5 chunks +51 lines, -29 lines 0 comments Download
M services/ui/ws/user_display_manager_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/user_display_manager_unittest.cc View 1 2 3 5 chunks +25 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_state.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/screen_mus.h View 1 2 chunks +6 lines, -3 lines 0 comments Download
M ui/views/mus/screen_mus.cc View 1 2 5 chunks +36 lines, -17 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
kylechar
sky: services/ui/* tsepez: *.mojom
4 years, 1 month ago (2016-10-28 13:57:56 UTC) #3
Tom Sepez
lgtm
4 years, 1 month ago (2016-10-28 16:26:10 UTC) #4
sky
https://codereview.chromium.org/2461513002/diff/20001/services/ui/display/platform_screen_delegate.h File services/ui/display/platform_screen_delegate.h (right): https://codereview.chromium.org/2461513002/diff/20001/services/ui/display/platform_screen_delegate.h#newcode38 services/ui/display/platform_screen_delegate.h:38: // to be removed then |primary_display_id| will be set ...
4 years, 1 month ago (2016-10-28 17:08:47 UTC) #5
kylechar
https://codereview.chromium.org/2461513002/diff/20001/services/ui/display/platform_screen_delegate.h File services/ui/display/platform_screen_delegate.h (right): https://codereview.chromium.org/2461513002/diff/20001/services/ui/display/platform_screen_delegate.h#newcode38 services/ui/display/platform_screen_delegate.h:38: // to be removed then |primary_display_id| will be set ...
4 years, 1 month ago (2016-10-28 19:40:37 UTC) #6
sky
Only one question about accelerator. https://codereview.chromium.org/2461513002/diff/20001/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2461513002/diff/20001/services/ui/ws/window_manager_state.cc#newcode439 services/ui/ws/window_manager_state.cc:439: DebugAcceleratorType::PRINT_WINDOWS, ui::VKEY_B, On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 19:59:37 UTC) #7
kylechar
https://codereview.chromium.org/2461513002/diff/40001/services/ui/display/platform_screen_ozone_unittests.cc File services/ui/display/platform_screen_ozone_unittests.cc (right): https://codereview.chromium.org/2461513002/diff/40001/services/ui/display/platform_screen_ozone_unittests.cc#newcode71 services/ui/display/platform_screen_ozone_unittests.cc:71: const std::vector<DisplayState>& added() { return added_; } On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 20:43:53 UTC) #8
kylechar
On 2016/10/28 19:59:37, sky wrote: > I tend to think we should make it the ...
4 years, 1 month ago (2016-10-28 20:48:00 UTC) #9
sky
LGTM
4 years, 1 month ago (2016-10-28 20:55:02 UTC) #11
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/2461513002/60001
4 years, 1 month ago (2016-10-28 21:51:41 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-28 22:19:38 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 22:22:57 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/100dccedb99065973e21ecf0661d123e719784e1
Cr-Commit-Position: refs/heads/master@{#428517}

Powered by Google App Engine
This is Rietveld 408576698