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

Issue 2161993002: Start using display.mojom.Display in mus+ash. (Closed)

Created:
4 years, 5 months ago by kylechar
Modified:
4 years, 5 months ago
Reviewers:
Tom Sepez, sky
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@display_traits
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Start using display.mojom.Display in mus+ash. Many small changes to use display.mojom.Display and the corresponding StructTrait. 1. Rename ui.mojom.Display to ui.mojom.WmDisplay. 2. Change ui.mojom.WmDisplay to contain a display.mojom.Display. 3. Delete TypeConverter for ui.mojom.WmDisplay -> display::Display as the StructTrait does this automatically now. 4. Change ui.mojom.WindowManager to use display.mojom.Display instead of ui.mojom.WmDisplay. It wasn't using the extra fields. 5. Change ui::wm::Display and ui::wm::PlatformDisplay to use C++ rotation enum instead of mojom enum. 6. Add some missing #includes that the linter was complaining about. BUG=625876 Committed: https://crrev.com/1c9130aa19e71300506fa73ff259135c6cdba5e6 Cr-Commit-Position: refs/heads/master@{#406545}

Patch Set 1 #

Patch Set 2 : Formatting. #

Total comments: 4

Patch Set 3 : Fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -231 lines) Patch
M ash/mus/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/root_window_controller.cc View 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/public/cpp/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/public/cpp/lib/window_tree_client.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/interfaces/display.mojom View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 chunks +4 lines, -1 line 0 comments Download
M services/ui/public/interfaces/window_manager_constants.mojom View 1 2 3 chunks +3 lines, -20 lines 0 comments Download
M services/ui/test_wm/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/test_wm/test_wm.cc View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/ws/display.h View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M services/ui/ws/display.cc View 1 2 3 chunks +23 lines, -13 lines 0 comments Download
M services/ui/ws/platform_display.h View 4 chunks +4 lines, -2 lines 0 comments Download
M services/ui/ws/platform_display.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/ws/test_utils.h View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/ws/test_utils.cc View 2 chunks +5 lines, -1 line 0 comments Download
M services/ui/ws/user_display_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/user_display_manager.cc View 1 2 4 chunks +8 lines, -6 lines 0 comments Download
M services/ui/ws/user_display_manager_unittest.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M services/ui/ws/window_server_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/window_tree.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
D ui/display/mojo/BUILD.gn View 1 chunk +0 lines, -20 lines 0 comments Download
D ui/display/mojo/DEPS View 1 chunk +0 lines, -4 lines 0 comments Download
D ui/display/mojo/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D ui/display/mojo/display_type_converters.h View 1 chunk +0 lines, -22 lines 0 comments Download
D ui/display/mojo/display_type_converters.cc View 1 chunk +0 lines, -59 lines 0 comments Download
D ui/display/mojo/mojo_display_export.h View 1 chunk +0 lines, -32 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/screen_mus.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/mus/screen_mus.cc View 1 2 3 chunks +12 lines, -17 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 18 (7 generated)
kylechar
+sky for OWNERS on basically everything, +tsepez for security review.
4 years, 5 months ago (2016-07-19 13:35:12 UTC) #3
Tom Sepez
mojom lgtm https://codereview.chromium.org/2161993002/diff/20001/services/ui/ws/display.cc File services/ui/ws/display.cc (right): https://codereview.chromium.org/2161993002/diff/20001/services/ui/ws/display.cc#newcode99 services/ui/ws/display.cc:99: // TODO(sky): Display should know it's origin. ...
4 years, 5 months ago (2016-07-19 16:22:25 UTC) #4
sky
https://codereview.chromium.org/2161993002/diff/20001/services/ui/public/interfaces/window_manager_constants.mojom File services/ui/public/interfaces/window_manager_constants.mojom (right): https://codereview.chromium.org/2161993002/diff/20001/services/ui/public/interfaces/window_manager_constants.mojom#newcode42 services/ui/public/interfaces/window_manager_constants.mojom:42: struct WmDisplay { This names implies the display is ...
4 years, 5 months ago (2016-07-19 18:07:15 UTC) #5
sky
On 2016/07/19 18:07:15, sky wrote: > https://codereview.chromium.org/2161993002/diff/20001/services/ui/public/interfaces/window_manager_constants.mojom > File services/ui/public/interfaces/window_manager_constants.mojom (right): > > https://codereview.chromium.org/2161993002/diff/20001/services/ui/public/interfaces/window_manager_constants.mojom#newcode42 > ...
4 years, 5 months ago (2016-07-19 18:07:49 UTC) #6
kylechar
https://codereview.chromium.org/2161993002/diff/20001/services/ui/public/interfaces/window_manager_constants.mojom File services/ui/public/interfaces/window_manager_constants.mojom (right): https://codereview.chromium.org/2161993002/diff/20001/services/ui/public/interfaces/window_manager_constants.mojom#newcode42 services/ui/public/interfaces/window_manager_constants.mojom:42: struct WmDisplay { On 2016/07/19 18:07:15, sky wrote: > ...
4 years, 5 months ago (2016-07-19 18:55:20 UTC) #7
sky
LGTM
4 years, 5 months ago (2016-07-19 19:11:19 UTC) #8
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/2161993002/40001
4 years, 5 months ago (2016-07-19 20:07:33 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/106799)
4 years, 5 months ago (2016-07-19 23:38:34 UTC) #13
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/2161993002/40001
4 years, 5 months ago (2016-07-20 12:32:23 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-20 13:28:21 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 13:29:56 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1c9130aa19e71300506fa73ff259135c6cdba5e6
Cr-Commit-Position: refs/heads/master@{#406545}

Powered by Google App Engine
This is Rietveld 408576698