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

Issue 1743493002: Cleanup ash shelf accessor functions. (Closed)

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

Description

Cleanup ash shelf accessor functions. Remove RootWindowController::ForShelf, use ForWindow instead. Remove ShelfLayoutManager::ForShelf, use Shelf::For*, etc. Avoid direct RootWindowController use with Shelf::ForWindow. Add Shelf::shelf_layout_manager() accessor via ShelfWidget. (avoid Shelf::ForWindow in shell.cc for ShelfDelegate init path) (No Shelf exists for ShelfWidget::CreateShelf's delegate init) Make ShelfView take a Shelf* pointer; not ShelfLayoutManager. Add Shelf alignment helpers to avoid ShelfLayoutManager use. Miscellaneous refactoring of shelf object access callsites. TODO: Remove Shell::[G|S]etShelfAutoHideBehavior TODO: Remove Shell::[G|S]etShelfAlignment BUG=557406 TEST=No regressions or behavior changes. R=sky@chromium.org Committed: https://crrev.com/a7e8a5f5cabcd125f82b6a204cf1210dad41a1f7 Cr-Commit-Position: refs/heads/master@{#378392}

Patch Set 1 #

Patch Set 2 : Cleanup ash shelf accessor methods. #

Patch Set 3 : Cleanup; fix crash on access during construction. #

Patch Set 4 : Fix ShelfBrowserTest. #

Total comments: 2

Patch Set 5 : Avoid some ShelfLayoutManager uses. #

Patch Set 6 : More minor cleanup. #

Patch Set 7 : git cl format (minus one weird suggestion) #

Patch Set 8 : Revert ash/shelf/shelf_widget.cc for browser_tests crash... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -372 lines) Patch
M ash/focus_cycler_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 1 2 3 4 5 6 2 chunks +5 lines, -8 lines 0 comments Download
M ash/root_window_controller.h View 2 1 chunk +0 lines, -6 lines 0 comments Download
M ash/root_window_controller.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M ash/shelf/overflow_bubble.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/overflow_bubble_view.h View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
M ash/shelf/overflow_bubble_view.cc View 1 2 3 4 5 6 5 chunks +9 lines, -21 lines 0 comments Download
M ash/shelf/overflow_button.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ash/shelf/overflow_button.cc View 1 2 3 4 5 6 4 chunks +4 lines, -5 lines 0 comments Download
M ash/shelf/shelf.h View 1 2 3 4 5 6 4 chunks +33 lines, -5 lines 0 comments Download
M ash/shelf/shelf.cc View 1 2 3 4 4 chunks +9 lines, -8 lines 0 comments Download
M ash/shelf/shelf_alignment_menu.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M ash/shelf/shelf_button.h View 1 2 3 4 6 chunks +5 lines, -11 lines 0 comments Download
M ash/shelf/shelf_button.cc View 1 2 3 4 5 6 7 chunks +29 lines, -44 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M ash/shelf/shelf_view.h View 1 2 3 4 6 chunks +8 lines, -13 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 5 6 27 chunks +63 lines, -86 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M ash/shell.cc View 1 2 4 chunks +13 lines, -11 lines 0 comments Download
M ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc View 1 7 chunks +8 lines, -7 lines 0 comments Download
M ash/wm/app_list_controller.cc View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 4 chunks +7 lines, -15 lines 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 1 2 3 4 5 7 chunks +8 lines, -16 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 4 chunks +7 lines, -13 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 5 2 chunks +7 lines, -16 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 2 5 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/accessibility/chromevox_panel.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/shelf_browsertest.cc View 1 2 3 4 5 2 chunks +17 lines, -18 lines 0 comments Download

Messages

Total messages: 35 (19 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/1743493002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743493002/60001
4 years, 10 months ago (2016-02-26 22:48:40 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/28258) linux_chromium_chromeos_compile_dbg_ng on ...
4 years, 10 months ago (2016-02-26 23:17:14 UTC) #9
msw
Hey Scott, please take a look; thanks!
4 years, 10 months ago (2016-02-26 23:36:10 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743493002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743493002/80001
4 years, 10 months ago (2016-02-26 23:41:09 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-27 01:31:45 UTC) #15
sky
https://codereview.chromium.org/1743493002/diff/80001/ash/shelf/shelf.h File ash/shelf/shelf.h (right): https://codereview.chromium.org/1743493002/diff/80001/ash/shelf/shelf.h#newcode97 ash/shelf/shelf.h:97: ShelfLayoutManager* shelf_layout_manager() { Seems unfortunate that we expose the ...
4 years, 9 months ago (2016-02-29 16:38:39 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743493002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743493002/100001
4 years, 9 months ago (2016-02-29 21:54:31 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743493002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743493002/140001
4 years, 9 months ago (2016-02-29 23:21:42 UTC) #21
msw
Hey Scott, please take another look; thanks! https://codereview.chromium.org/1743493002/diff/80001/ash/shelf/shelf.h File ash/shelf/shelf.h (right): https://codereview.chromium.org/1743493002/diff/80001/ash/shelf/shelf.h#newcode97 ash/shelf/shelf.h:97: ShelfLayoutManager* shelf_layout_manager() ...
4 years, 9 months ago (2016-02-29 23:23:44 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/174135)
4 years, 9 months ago (2016-03-01 00:09:22 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743493002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743493002/160001
4 years, 9 months ago (2016-03-01 00:34:18 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 01:37:45 UTC) #28
sky
Ok, LGTM
4 years, 9 months ago (2016-03-01 03:48:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1743493002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1743493002/160001
4 years, 9 months ago (2016-03-01 04:08:39 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 9 months ago (2016-03-01 04:15:14 UTC) #33
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 04:17:22 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a7e8a5f5cabcd125f82b6a204cf1210dad41a1f7
Cr-Commit-Position: refs/heads/master@{#378392}

Powered by Google App Engine
This is Rietveld 408576698