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

Issue 2345043003: Unify mustash display closing code paths. (Closed)

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

Description

Unify mustash display closing code paths. There are currently two ways a display can be closed in mustash. First, the NDD can update and indicated the display is gone. Second, when running off device the user can close the platform window. This CL unifies the two code paths. When running off device and the platform window calls PlatformWindowDelegate::OnRequestClose() the request is forwarded to PlatformScreen. PlatformScreen then tells the NDD to remove the fake display. The display configuration will update and the display will be gone. This allows the same display removed code path to get used in all cases. This also fixes PlatformScreen not knowing about the user closing a display. BUG=641012 Committed: https://crrev.com/0f1a2fab593f627a168e95b1cfec1b241c129133 Cr-Commit-Position: refs/heads/master@{#419563}

Patch Set 1 #

Patch Set 2 : Add missing newline back. #

Total comments: 1

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -14 lines) Patch
M services/ui/display/platform_screen.h View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/display/platform_screen_ozone.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/display/platform_screen_ozone.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M services/ui/display/platform_screen_stub.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/display/platform_screen_stub.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M services/ui/ws/display.h View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/display.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M services/ui/ws/display_manager.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/platform_display.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M services/ui/ws/platform_display_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (8 generated)
kylechar
4 years, 3 months ago (2016-09-16 16:22:39 UTC) #2
sky
https://codereview.chromium.org/2345043003/diff/20001/services/ui/display/platform_screen.h File services/ui/display/platform_screen.h (right): https://codereview.chromium.org/2345043003/diff/20001/services/ui/display/platform_screen.h#newcode41 services/ui/display/platform_screen.h:41: virtual void RequestCloseDisplay(int64_t display_id) = 0; If you're going ...
4 years, 3 months ago (2016-09-16 17:28:49 UTC) #3
sky
I clearly misread what you are doing. LGTM
4 years, 3 months ago (2016-09-16 18:49:21 UTC) #4
kylechar
Thanks sky!
4 years, 3 months ago (2016-09-16 19:16:48 UTC) #5
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/2345043003/40001
4 years, 3 months ago (2016-09-19 21:16:30 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-19 21:37:12 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 21:38:42 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0f1a2fab593f627a168e95b1cfec1b241c129133
Cr-Commit-Position: refs/heads/master@{#419563}

Powered by Google App Engine
This is Rietveld 408576698