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

Issue 2310133002: Add mojom::DisplayController. (Closed)

Created:
4 years, 3 months ago by kylechar
Modified:
4 years, 3 months ago
Reviewers:
rjkroege, sky, dcheng
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add mojom::DisplayController. Add a new mojo interface mojom::DisplayController to allow privileged clients to make changes to the display state. The initial interface contains methods needed by mash to provide display state related keyboard accelerators that exist in cash currently. Have PlatformScreenOzone implement this new interface and provide mostly stub implementations. Right now the interface isn't wired up so that will happen in a subsequent CL. Also adds PlatformScreen::GetInstance() so PlatformScreen doesn't need to be passed so many places. BUG=611475 Committed: https://crrev.com/b39238a88385b5f0d7e93ff1195c9909e4d6c414 Cr-Commit-Position: refs/heads/master@{#417578}

Patch Set 1 #

Patch Set 2 : Review/fix. #

Patch Set 3 : Remove acclerator. #

Total comments: 6

Patch Set 4 : Address comments. #

Total comments: 2

Patch Set 5 : Remove unused functions. #

Patch Set 6 : Add missing dep. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -28 lines) Patch
M services/ui/display/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M services/ui/display/platform_screen.h View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download
A services/ui/display/platform_screen.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M services/ui/display/platform_screen_delegate.h View 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/display/platform_screen_ozone.h View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M services/ui/display/platform_screen_ozone.cc View 1 2 3 4 2 chunks +20 lines, -1 line 0 comments Download
M services/ui/display/platform_screen_ozone_unittests.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/display/platform_screen_stub.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/interfaces/display/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A services/ui/public/interfaces/display/display_controller.mojom View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M services/ui/ws/display_manager.h View 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/ws/display_manager.cc View 1 chunk +1 line, -4 lines 0 comments Download
M services/ui/ws/platform_display.h View 2 chunks +0 lines, -2 lines 0 comments Download
M services/ui/ws/platform_display.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M services/ui/ws/platform_display_init_params.h View 2 chunks +0 lines, -5 lines 0 comments Download
M services/ui/ws/window_manager_state.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 40 (14 generated)
kylechar
4 years, 3 months ago (2016-09-06 20:11:22 UTC) #2
sky
I think this code should be in ash. See DEBUG_ADD_REMOVE_DISPLAY.
4 years, 3 months ago (2016-09-06 21:25:47 UTC) #3
kylechar
On 2016/09/06 21:25:47, sky wrote: > I think this code should be in ash. See ...
4 years, 3 months ago (2016-09-06 21:28:53 UTC) #4
sky
On 2016/09/06 21:28:53, kylechar wrote: > On 2016/09/06 21:25:47, sky wrote: > > I think ...
4 years, 3 months ago (2016-09-06 22:15:19 UTC) #5
kylechar
On 2016/09/06 22:15:19, sky wrote: > On 2016/09/06 21:28:53, kylechar wrote: > > On 2016/09/06 ...
4 years, 3 months ago (2016-09-06 22:42:46 UTC) #6
rjkroege
On 2016/09/06 22:42:46, kylechar wrote: > On 2016/09/06 22:15:19, sky wrote: > > On 2016/09/06 ...
4 years, 3 months ago (2016-09-06 23:32:49 UTC) #7
kylechar
On 2016/09/06 23:32:49, rjkroege wrote: > On 2016/09/06 22:42:46, kylechar wrote: > > On 2016/09/06 ...
4 years, 3 months ago (2016-09-07 00:04:31 UTC) #8
kylechar
On 2016/09/07 00:04:31, kylechar wrote: > On 2016/09/06 23:32:49, rjkroege wrote: > > On 2016/09/06 ...
4 years, 3 months ago (2016-09-07 00:18:51 UTC) #9
sky
I'm suggesting that ash triggers something like CreateWindowTreeHost. Which I think is something similar to ...
4 years, 3 months ago (2016-09-07 03:50:10 UTC) #10
rjkroege
On Tuesday, September 6, 2016, Scott Violet <sky@chromium.org <javascript:_e(%7B%7D,'cvml','sky@chromium.org');>> wrote: > I'm suggesting that ash ...
4 years, 3 months ago (2016-09-07 17:31:57 UTC) #11
sky
On Wed, Sep 7, 2016 at 10:31 AM, Robert Kroeger <rjkroege@chromium.org> wrote: > > > ...
4 years, 3 months ago (2016-09-07 17:35:29 UTC) #12
kylechar
Let's say the stack of class involved looks roughly like the following, from highest (mus ...
4 years, 3 months ago (2016-09-07 18:38:06 UTC) #13
sky
On Wed, Sep 7, 2016 at 11:38 AM, <kylechar@chromium.org> wrote: > Let's say the stack ...
4 years, 3 months ago (2016-09-07 21:41:11 UTC) #14
kylechar
sky: I've added a mojo interface to control adding/removing the display. I've also removed the ...
4 years, 3 months ago (2016-09-08 17:31:47 UTC) #17
sky
LGTM - I added dcheng for new mojom. https://codereview.chromium.org/2310133002/diff/60001/services/ui/display/platform_screen.cc File services/ui/display/platform_screen.cc (right): https://codereview.chromium.org/2310133002/diff/60001/services/ui/display/platform_screen.cc#newcode11 services/ui/display/platform_screen.cc:11: PlatformScreen* ...
4 years, 3 months ago (2016-09-08 18:03:35 UTC) #19
kylechar
https://codereview.chromium.org/2310133002/diff/60001/services/ui/display/platform_screen.cc File services/ui/display/platform_screen.cc (right): https://codereview.chromium.org/2310133002/diff/60001/services/ui/display/platform_screen.cc#newcode11 services/ui/display/platform_screen.cc:11: PlatformScreen* PlatformScreen::instance_ = nullptr; On 2016/09/08 18:03:35, sky wrote: ...
4 years, 3 months ago (2016-09-08 18:12:04 UTC) #21
dcheng
This might be a dumb question, but why don't we just have a Display interface ...
4 years, 3 months ago (2016-09-08 19:38:10 UTC) #22
kylechar
On 2016/09/08 19:38:10, dcheng wrote: > This might be a dumb question, but why don't ...
4 years, 3 months ago (2016-09-08 19:42:33 UTC) #23
dcheng
On 2016/09/08 19:42:33, kylechar wrote: > On 2016/09/08 19:38:10, dcheng wrote: > > This might ...
4 years, 3 months ago (2016-09-08 19:58:43 UTC) #24
dcheng
Briefly talked offline. As background: with legacy IPC, we had no choice but to plumb ...
4 years, 3 months ago (2016-09-08 21:02:58 UTC) #26
kylechar
https://codereview.chromium.org/2310133002/diff/100001/services/ui/display/platform_screen_ozone.cc File services/ui/display/platform_screen_ozone.cc (right): https://codereview.chromium.org/2310133002/diff/100001/services/ui/display/platform_screen_ozone.cc#newcode88 services/ui/display/platform_screen_ozone.cc:88: NOTIMPLEMENTED(); On 2016/09/08 21:02:57, dcheng wrote: > Would it ...
4 years, 3 months ago (2016-09-08 21:20:53 UTC) #27
dcheng
mojom lgtm
4 years, 3 months ago (2016-09-08 21:25:27 UTC) #28
rjkroege
lgtm.
4 years, 3 months ago (2016-09-08 22:34:58 UTC) #33
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/2310133002/140001
4 years, 3 months ago (2016-09-09 13:02:37 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 3 months ago (2016-09-09 14:07:20 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 14:09:19 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b39238a88385b5f0d7e93ff1195c9909e4d6c414
Cr-Commit-Position: refs/heads/master@{#417578}

Powered by Google App Engine
This is Rietveld 408576698