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

Issue 2271373002: mash: Port mojo:ash_sysui's ContextMenuMus to mojo:ash. (Closed)

Created:
4 years, 4 months ago by msw
Modified:
4 years, 3 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, elijahtaylor+arcwatch_chromium.org, michaelpg+watch-options_chromium.org, sadrul, yusukes+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, hidehiko+watch_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, kalyank, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Port mojo:ash_sysui's ContextMenuMus to mojo:ash. Move and rename ash/common/wallpaper/wallpaper_delegate.h Move instance/accessor to WmShell; rename subclasses, etc. Add NativeWidgetFactoryMus for mojo:ash's ui widgets. (needed to make a NativeWidgetMus for the context menu) BUG=640693, 629605 TEST=Basic context menus show in mash; no cros changes. R=jamescook@chromium.org,sky@chromium.org TBR=stevenjb@chromium.org,yusukes@chromium.org Committed: https://crrev.com/0e91d93494aa2e7638df38c11b0c7d881d46c213 Cr-Commit-Position: refs/heads/master@{#414561}

Patch Set 1 #

Patch Set 2 : Got something hacky working... #

Patch Set 3 : Cleanup. #

Total comments: 8

Patch Set 4 : Sync and rebase; fix build. #

Patch Set 5 : Address comments. #

Patch Set 6 : Move factory ownership to WindowManagerApplication; to match AuraInit/ViewsDelegate. #

Total comments: 4

Patch Set 7 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -807 lines) Patch
M ash/accelerators/accelerator_controller_delegate_aura.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M ash/common/shell_delegate.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A + ash/common/wallpaper/wallpaper_delegate.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ash/common/wm_shell.h View 3 chunks +4 lines, -0 lines 0 comments Download
M ash/common/wm_shell.cc View 2 chunks +2 lines, -0 lines 0 comments Download
D ash/default_user_wallpaper_delegate.h View 1 chunk +0 lines, -38 lines 0 comments Download
D ash/default_user_wallpaper_delegate.cc View 1 chunk +0 lines, -46 lines 0 comments Download
A + ash/default_wallpaper_delegate.h View 1 2 3 4 5 6 2 chunks +9 lines, -10 lines 0 comments Download
A ash/default_wallpaper_delegate.cc View 1 chunk +46 lines, -0 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/desktop_background/desktop_background_controller_unittest.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M ash/desktop_background/desktop_background_widget_controller.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
D ash/desktop_background/user_wallpaper_delegate.h View 1 chunk +0 lines, -59 lines 0 comments Download
M ash/mus/BUILD.gn View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
A + ash/mus/context_menu_mus.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
A + ash/mus/context_menu_mus.cc View 1 2 3 3 chunks +8 lines, -7 lines 0 comments Download
A ash/mus/native_widget_factory_mus.h View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A ash/mus/native_widget_factory_mus.cc View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M ash/mus/shell_delegate_mus.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M ash/mus/window_manager_application.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ash/mus/window_manager_application.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 3 chunks +0 lines, -6 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 4 chunks +5 lines, -9 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 4 chunks +13 lines, -13 lines 0 comments Download
M ash/sysui/BUILD.gn View 2 chunks +2 lines, -4 lines 0 comments Download
D ash/sysui/context_menu_mus.h View 1 chunk +0 lines, -44 lines 0 comments Download
D ash/sysui/context_menu_mus.cc View 1 2 3 1 chunk +0 lines, -55 lines 0 comments Download
M ash/sysui/shell_delegate_mus.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/sysui/shell_delegate_mus.cc View 1 2 3 4 5 6 3 chunks +6 lines, -5 lines 0 comments Download
M ash/sysui/sysui_application.cc View 2 chunks +2 lines, -3 lines 0 comments Download
D ash/sysui/user_wallpaper_delegate_mus.h View 1 chunk +0 lines, -44 lines 0 comments Download
D ash/sysui/user_wallpaper_delegate_mus.cc View 1 chunk +0 lines, -92 lines 0 comments Download
A + ash/sysui/wallpaper_delegate_mus.h View 2 chunks +10 lines, -10 lines 0 comments Download
A + ash/sysui/wallpaper_delegate_mus.cc View 2 chunks +15 lines, -15 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
D ash/test/test_user_wallpaper_delegate.h View 1 chunk +0 lines, -44 lines 0 comments Download
D ash/test/test_user_wallpaper_delegate.cc View 1 chunk +0 lines, -34 lines 0 comments Download
A + ash/test/test_wallpaper_delegate.h View 3 chunks +9 lines, -9 lines 0 comments Download
A + ash/test/test_wallpaper_delegate.cc View 3 chunks +6 lines, -7 lines 0 comments Download
D chrome/browser/chromeos/background/ash_user_wallpaper_delegate.h View 1 chunk +0 lines, -17 lines 0 comments Download
D chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc View 1 chunk +0 lines, -147 lines 0 comments Download
A chrome/browser/chromeos/background/ash_wallpaper_delegate.h View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/background/ash_wallpaper_delegate.cc View 1 2 3 4 4 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/appearance_handler.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/arc/intent_helper/arc_intent_helper_bridge.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (24 generated)
msw
Hey James and Scott, please take a look: James: please review ash/* (minus ash/mus/*) Scott: ...
4 years, 4 months ago (2016-08-24 23:39:13 UTC) #3
sky
LGTM - it would be good to have test coverage, but no doubt that will ...
4 years, 4 months ago (2016-08-25 00:00:32 UTC) #8
msw
https://codereview.chromium.org/2271373002/diff/40001/ash/mus/context_menu_mus.h File ash/mus/context_menu_mus.h (right): https://codereview.chromium.org/2271373002/diff/40001/ash/mus/context_menu_mus.h#newcode17 ash/mus/context_menu_mus.h:17: // TODO(mash): Mimic logic in LauncherContextMenu. On 2016/08/25 00:00:32, ...
4 years, 4 months ago (2016-08-25 00:25:14 UTC) #10
msw
Scott, I moved factory ownership to WindowManagerApplication; to better match AuraInit/ViewsDelegate. James, please take a ...
4 years, 3 months ago (2016-08-25 16:41:16 UTC) #19
James Cook
ash/* LGTM with a request for std::unique_ptr<> https://codereview.chromium.org/2271373002/diff/100001/ash/common/shell_delegate.h File ash/common/shell_delegate.h (right): https://codereview.chromium.org/2271373002/diff/100001/ash/common/shell_delegate.h#newcode112 ash/common/shell_delegate.h:112: virtual WallpaperDelegate* ...
4 years, 3 months ago (2016-08-25 16:59:57 UTC) #20
msw
+TBR yusukes for components/arc/OWNERS +TBR stevenjb for chrome/browser/ui/webui/options/OWNERS https://codereview.chromium.org/2271373002/diff/100001/ash/common/shell_delegate.h File ash/common/shell_delegate.h (right): https://codereview.chromium.org/2271373002/diff/100001/ash/common/shell_delegate.h#newcode112 ash/common/shell_delegate.h:112: virtual ...
4 years, 3 months ago (2016-08-25 18:27:06 UTC) #24
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/2271373002/140001
4 years, 3 months ago (2016-08-25 18:27:55 UTC) #27
sky
Moving to WindowManagerApplication SLGTM (good thing I suggested you put the code in a separate ...
4 years, 3 months ago (2016-08-25 20:20:04 UTC) #28
Yusuke Sato
arc/ lgtm
4 years, 3 months ago (2016-08-25 20:21:03 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281381)
4 years, 3 months ago (2016-08-25 21:17:39 UTC) #31
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/2271373002/140001
4 years, 3 months ago (2016-08-25 21:27:01 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 3 months ago (2016-08-25 22:34:31 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 22:36:54 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0e91d93494aa2e7638df38c11b0c7d881d46c213
Cr-Commit-Position: refs/heads/master@{#414561}

Powered by Google App Engine
This is Rietveld 408576698