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

Issue 1812013003: Pass shelf instances, not root windows, for ash context menus. (Closed)

Created:
4 years, 9 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

Pass shelf instances, not root windows, for ash context menus. Avoid most window->shelf lookup calls; misc cleanup. Remove some ChromeLauncherController auto-hide functions. (inline pref lookup function call, context menu ops) Add Shell::OnShelfAlignmentChanged to revise set pattern. (support ShelfLayoutManager::SetAlignment, w/o Shell::SetShelfAlignment) Prerequisite for https://codereview.chromium.org/1760743002 BUG=557406 TEST=No behavior changes or regressions. R=sky@chromium.org Committed: https://crrev.com/953caf1fc83c06ef7a4da9661f3350faec8a82f6 Cr-Commit-Position: refs/heads/master@{#381849}

Patch Set 1 #

Patch Set 2 : Fix ash_shell_with_content; cleanup. #

Total comments: 1

Patch Set 3 : Update LauncherContextMenuTest. #

Patch Set 4 : Update shelf alignment set pattern #

Patch Set 5 : Call OnShelfAlignmentChanged after LayoutShelf. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -202 lines) Patch
M ash/mus/shell_delegate_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/root_window_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf.cc View 4 1 chunk +8 lines, -0 lines 0 comments Download
M ash/shelf/shelf_alignment_menu.h View 2 chunks +4 lines, -6 lines 0 comments Download
M ash/shelf/shelf_alignment_menu.cc View 1 2 3 3 chunks +16 lines, -20 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 2 chunks +4 lines, -10 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 3 chunks +10 lines, -14 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/shell.h View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M ash/shell.cc View 1 2 3 1 chunk +7 lines, -5 lines 0 comments Download
M ash/shell/context_menu.h View 2 chunks +6 lines, -9 lines 0 comments Download
M ash/shell/context_menu.cc View 1 2 chunks +13 lines, -29 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell_delegate.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_shell_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 3 chunks +4 lines, -36 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.h View 1 3 chunks +3 lines, -16 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 7 chunks +21 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 2 2 chunks +5 lines, -16 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
msw
Hey Scott, please take a look; thanks! https://codereview.chromium.org/1812013003/diff/20001/ash/shelf/shelf_alignment_menu.cc File ash/shelf/shelf_alignment_menu.cc (right): https://codereview.chromium.org/1812013003/diff/20001/ash/shelf/shelf_alignment_menu.cc#newcode57 ash/shelf/shelf_alignment_menu.cc:57: shell->SetShelfAlignment(SHELF_ALIGNMENT_LEFT, root_window); ...
4 years, 9 months ago (2016-03-17 19:04:37 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/1812013003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812013003/20001
4 years, 9 months ago (2016-03-17 19:05:16 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/171976) linux_chromium_gn_chromeos_rel on ...
4 years, 9 months ago (2016-03-17 19:23:45 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812013003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812013003/40001
4 years, 9 months ago (2016-03-17 19:43:08 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-17 20:24:54 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812013003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812013003/60001
4 years, 9 months ago (2016-03-17 22:55:41 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/190782)
4 years, 9 months ago (2016-03-17 23:17:39 UTC) #15
sky
LGTM
4 years, 9 months ago (2016-03-17 23:20:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812013003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812013003/80001
4 years, 9 months ago (2016-03-17 23:53:02 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-18 00:33:38 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 00:34:32 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/953caf1fc83c06ef7a4da9661f3350faec8a82f6
Cr-Commit-Position: refs/heads/master@{#381849}

Powered by Google App Engine
This is Rietveld 408576698