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

Issue 1877543002: Revise the shelf alignment locking mechanism. (Closed)

Created:
4 years, 8 months ago by msw
Modified:
4 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, oshima, James Cook
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revise the shelf alignment locking mechanism. Add a new SHELF_ALIGNMENT_LOCKED, not stored in user prefs. (similar to existing SHELF_AUTO_HIDE_ALWAYS_HIDDEN behavior) Add a new Shelf member, ShelfLockingManager. This locks (bottom) alignment on screen lock and user addition. Fixes a regression from https://codereview.chromium.org/1851883002 TODO: Move more state tracking (for visibility) out of LayoutManager. BUG=603243 TEST=Locking Chrome OS moves shelf to bottom. R=sky@chromium.org Committed: https://crrev.com/67a576240caed1c3783e6465d6c07998a2fc0b07 Cr-Commit-Position: refs/heads/master@{#388021}

Patch Set 1 : Fix shelf alignment locking pattern. #

Patch Set 2 : Add SHELF_ALIGNMENT_LOCKED, which is not stored as a preference. #

Patch Set 3 : Cleanup; fix tests. #

Patch Set 4 : Sync and rebase. #

Patch Set 5 : Make Shelf observe lock_state_controller. #

Patch Set 6 : Move logic to a new ShelfLockingManager, owned by Shelf. #

Total comments: 2

Patch Set 7 : Rename SHELF_ALIGNMENT_BOTTOM_LOCKED, add comment. #

Patch Set 8 : Update and cleanup tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -451 lines) Patch
M ash/app_list/app_list_presenter_delegate.cc View 1 2 3 4 5 6 2 chunks +7 lines, -14 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ash/content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ash/mus/shelf_delegate_mus.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf.h View 1 2 3 4 5 6 4 chunks +8 lines, -11 lines 0 comments Download
M ash/shelf/shelf.cc View 1 2 3 4 5 2 chunks +5 lines, -13 lines 0 comments Download
M ash/shelf/shelf_bezel_event_filter.cc View 1 1 chunk +5 lines, -18 lines 0 comments Download
M ash/shelf/shelf_button.cc View 1 2 chunks +9 lines, -12 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 6 chunks +5 lines, -25 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -6 lines 0 comments Download
A ash/shelf/shelf_locking_manager.h View 1 2 3 4 5 6 7 1 chunk +49 lines, -0 lines 0 comments Download
A ash/shelf/shelf_locking_manager.cc View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
M ash/shelf/shelf_types.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shelf/shelf_util.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf_util.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 6 chunks +13 lines, -12 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 4 5 6 16 chunks +58 lines, -99 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 2 3 4 5 6 4 chunks +22 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/cast/tray_cast.cc View 1 2 chunks +4 lines, -10 lines 0 comments Download
M ash/system/chromeos/network/tray_network.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/chromeos/screen_security/screen_tray_item.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/date/tray_date.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/overview/overview_button_tray.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/status_area_widget_delegate.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 5 chunks +8 lines, -13 lines 0 comments Download
M ash/system/tray/system_tray_unittest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 3 4 5 chunks +8 lines, -12 lines 0 comments Download
M ash/system/tray/tray_image_item.cc View 1 2 chunks +4 lines, -10 lines 0 comments Download
M ash/system/tray/tray_item_view.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M ash/system/tray/tray_utils.cc View 1 2 3 4 4 chunks +7 lines, -12 lines 0 comments Download
M ash/system/user/tray_user.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 4 2 chunks +7 lines, -17 lines 0 comments Download
M ash/test/shelf_test_api.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -11 lines 0 comments Download
D ash/test/shelf_test_api.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -23 lines 0 comments Download
M ash/wm/panels/attached_panel_window_targeter.cc View 1 1 chunk +4 lines, -14 lines 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 1 2 3 4 5 6 6 chunks +22 lines, -40 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 3 3 chunks +14 lines, -26 lines 0 comments Download
M ash/wm/panels/panel_window_resizer.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/window_animations.cc View 1 1 chunk +6 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 4 5 6 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc View 1 2 chunks +4 lines, -16 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877543002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877543002/100001
4 years, 8 months ago (2016-04-15 23:16:54 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877543002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877543002/140001
4 years, 8 months ago (2016-04-16 00:26:00 UTC) #10
msw
Hey Scott, please take a look; thanks! SHELF_ALIGNMENT_LOCKED parallels SHELF_AUTO_HIDE_ALWAYS_HIDDEN (set temporarily, not a behavior ...
4 years, 8 months ago (2016-04-16 00:30:45 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-16 01:22:11 UTC) #13
sky
LGTM https://codereview.chromium.org/1877543002/diff/160001/ash/shelf/shelf_types.h File ash/shelf/shelf_types.h (right): https://codereview.chromium.org/1877543002/diff/160001/ash/shelf/shelf_types.h#newcode14 ash/shelf/shelf_types.h:14: SHELF_ALIGNMENT_LOCKED, If LOCKED always == BOTTOM I think ...
4 years, 8 months ago (2016-04-18 15:17:00 UTC) #15
msw
https://codereview.chromium.org/1877543002/diff/160001/ash/shelf/shelf_types.h File ash/shelf/shelf_types.h (right): https://codereview.chromium.org/1877543002/diff/160001/ash/shelf/shelf_types.h#newcode14 ash/shelf/shelf_types.h:14: SHELF_ALIGNMENT_LOCKED, On 2016/04/18 15:17:00, sky wrote: > If LOCKED ...
4 years, 8 months ago (2016-04-18 18:13:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877543002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877543002/180001
4 years, 8 months ago (2016-04-18 18:13:44 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/123515) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-18 18:28:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877543002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877543002/200001
4 years, 8 months ago (2016-04-18 18:35:34 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/156312) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-18 18:51:23 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877543002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877543002/220001
4 years, 8 months ago (2016-04-18 20:08:47 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 8 months ago (2016-04-18 21:06:23 UTC) #32
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 21:09:01 UTC) #34
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/67a576240caed1c3783e6465d6c07998a2fc0b07
Cr-Commit-Position: refs/heads/master@{#388021}

Powered by Google App Engine
This is Rietveld 408576698