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 2017413002: ash: Fix variable names and setters in ShelfLayoutManager and tests (Closed)

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

Description

ash: Fix variable names and setters in ShelfLayoutManager and tests Calls to set shelf state should go through Shelf, not ShelfLayoutManager. * Move all calls to SetAutoHideBehavior() and SetAlignment() to Shelf instead of ShelfLayoutManager. * Add Shelf::GetVisibilityState() and Shelf::GetAutoHideState() and prefer using them to accessing ShelfLayoutManager directly. * Remove ShelfLayoutManager::GetAutoHideBehavior(). * Rename variables mis-named "shelf" to shelf_widget, shelf_layout_manager, etc. so they match their actual types. No functional changes. BUG=615502 TEST=ash_unittests Committed: https://crrev.com/cf8b648fcece89a78eec21726a1aa48667778dbe Cr-Commit-Position: refs/heads/master@{#397214}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Total comments: 34

Patch Set 4 : review comments, add getters to Shelf #

Patch Set 5 : rebase #

Total comments: 6

Patch Set 6 : review comments 2 #

Total comments: 2

Patch Set 7 : rebase yet again #

Patch Set 8 : review comments 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -550 lines) Patch
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 6 4 chunks +7 lines, -13 lines 0 comments Download
M ash/screen_util_unittest.cc View 1 2 3 4 chunks +7 lines, -13 lines 0 comments Download
M ash/shelf/shelf.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 4 5 6 4 chunks +5 lines, -14 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 23 chunks +66 lines, -60 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 5 6 85 chunks +312 lines, -301 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager_unittest.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 2 3 5 chunks +8 lines, -7 lines 0 comments Download
M ash/system/toast/toast_manager_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray_unittest.cc View 1 2 3 7 chunks +9 lines, -13 lines 0 comments Download
M ash/system/user/tray_user_unittest.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -16 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 3 4 5 6 6 chunks +15 lines, -17 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller_unittest.cc View 1 2 3 4 5 6 2 chunks +9 lines, -10 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc View 1 2 3 4 5 6 6 chunks +13 lines, -16 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +8 lines, -8 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 4 5 6 8 chunks +10 lines, -12 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 1 2 3 4 5 6 15 chunks +30 lines, -31 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
James Cook
msw, please take a look I wouldn't spend too much time in shelf_layout_manager_unittest.cc -- it's ...
4 years, 6 months ago (2016-05-31 01:38:19 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017413002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017413002/20001
4 years, 6 months ago (2016-05-31 01:38:35 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 02:57:57 UTC) #6
msw
Just nits and qs. This makes me want to move more accessors from ShelfLayoutManager to ...
4 years, 6 months ago (2016-06-01 00:53:24 UTC) #7
James Cook
msw, please take another look. I went ahead and added Shelf::GetVisibilityState() and Shelf::GetAutoHideState() now. I ...
4 years, 6 months ago (2016-06-01 15:53:07 UTC) #9
msw
lgtm with nits, thanks! https://codereview.chromium.org/2017413002/diff/40001/ash/shelf/shelf_layout_manager_unittest.cc File ash/shelf/shelf_layout_manager_unittest.cc (right): https://codereview.chromium.org/2017413002/diff/40001/ash/shelf/shelf_layout_manager_unittest.cc#newcode327 ash/shelf/shelf_layout_manager_unittest.cc:327: void SetState(ShelfLayoutManager* layout_manager, On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 17:30:08 UTC) #10
James Cook
oshima, can I get OWNERS? https://codereview.chromium.org/2017413002/diff/80001/ash/shelf/shelf.h File ash/shelf/shelf.h (right): https://codereview.chromium.org/2017413002/diff/80001/ash/shelf/shelf.h#newcode81 ash/shelf/shelf.h:81: // See enum description ...
4 years, 6 months ago (2016-06-01 17:56:04 UTC) #12
oshima
nice! lgtm https://codereview.chromium.org/2017413002/diff/100001/ash/system/user/tray_user_unittest.cc File ash/system/user/tray_user_unittest.cc (right): https://codereview.chromium.org/2017413002/diff/100001/ash/system/user/tray_user_unittest.cc#newcode70 ash/system/user/tray_user_unittest.cc:70: : tray_(nullptr), delegate_(nullptr), tray_user_separator_(nullptr) {} optiona: in-class ...
4 years, 6 months ago (2016-06-01 18:10:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017413002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017413002/140001
4 years, 6 months ago (2016-06-01 18:24:16 UTC) #16
James Cook
Thanks for the quick review. https://codereview.chromium.org/2017413002/diff/100001/ash/system/user/tray_user_unittest.cc File ash/system/user/tray_user_unittest.cc (right): https://codereview.chromium.org/2017413002/diff/100001/ash/system/user/tray_user_unittest.cc#newcode70 ash/system/user/tray_user_unittest.cc:70: : tray_(nullptr), delegate_(nullptr), tray_user_separator_(nullptr) ...
4 years, 6 months ago (2016-06-01 18:24:21 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-01 19:58:34 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 20:00:58 UTC) #20
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cf8b648fcece89a78eec21726a1aa48667778dbe
Cr-Commit-Position: refs/heads/master@{#397214}

Powered by Google App Engine
This is Rietveld 408576698