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

Issue 23514021: Add Hide to app menu. (Closed)

Created:
7 years, 3 months ago by jackhou1
Modified:
7 years, 3 months ago
Reviewers:
palmer, tapted, Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add Hide to app menu. This adds "Hide <app>" to the app menu that is shown when an app window has focus. This also enables the Cmd+H shortcut. This also adds an IPC message to instruct the shim to hide. This also adds a command ID for Hide and a corresponding tag to MainMenu.xib. BUG=168080, 276052 TEST=Start an app. Press Cmd+H or select Hide from the main menu. The app should hide. Clicking the app's dock icon, or Cmd+Tab to the app should show it again. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221676

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments #

Total comments: 8

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Save original key equivalent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -28 lines) Patch
M apps/app_shim/app_shim_handler_mac.h View 1 chunk +2 lines, -0 lines 0 comments Download
M apps/app_shim/app_shim_host_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M apps/app_shim/app_shim_host_mac.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M apps/app_shim/app_shim_messages.h View 1 chunk +3 lines, -0 lines 0 comments Download
M apps/app_shim/app_shim_quit_interactive_uitest_mac.mm View 1 chunk +1 line, -0 lines 0 comments Download
M apps/app_shim/chrome_main_app_mode_mac.mm View 3 chunks +8 lines, -0 lines 0 comments Download
M apps/app_shim/extension_app_shim_handler_mac.h View 1 chunk +2 lines, -0 lines 0 comments Download
M apps/app_shim/extension_app_shim_handler_mac.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M apps/app_shim/extension_app_shim_handler_mac_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_command_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/nibs/MainMenu.xib View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac_browsertest.mm View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm View 1 2 3 6 chunks +110 lines, -26 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jackhou1
7 years, 3 months ago (2013-08-30 05:44:10 UTC) #1
tapted
Don't forget to mention xib changes in the CL description. And the code looks pretty ...
7 years, 3 months ago (2013-08-30 07:46:22 UTC) #2
jackhou1
https://codereview.chromium.org/23514021/diff/1/apps/app_shim/extension_app_shim_handler_mac.cc File apps/app_shim/extension_app_shim_handler_mac.cc (right): https://codereview.chromium.org/23514021/diff/1/apps/app_shim/extension_app_shim_handler_mac.cc#newcode192 apps/app_shim/extension_app_shim_handler_mac.cc:192: if (host) { On 2013/08/30 07:46:25, tapted wrote: > ...
7 years, 3 months ago (2013-09-03 01:20:49 UTC) #3
tapted
lgtm % IPC review https://codereview.chromium.org/23514021/diff/1/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h (right): https://codereview.chromium.org/23514021/diff/1/chrome/app/chrome_command_ids.h#newcode245 chrome/app/chrome_command_ids.h:245: #define IDC_HIDE_APP 44003 // OSX ...
7 years, 3 months ago (2013-09-03 08:17:25 UTC) #4
jackhou1
https://codereview.chromium.org/23514021/diff/15001/apps/app_shim/app_shim_messages.h File apps/app_shim/app_shim_messages.h (right): https://codereview.chromium.org/23514021/diff/15001/apps/app_shim/app_shim_messages.h#newcode28 apps/app_shim/app_shim_messages.h:28: // Instructs the shim to hide the app. On ...
7 years, 3 months ago (2013-09-04 01:31:30 UTC) #5
jackhou1
thakis, please review for OWNERS in chrome/app/ and chrome/browser/ui/cocoa/ palmer, please review IPC changes
7 years, 3 months ago (2013-09-04 01:32:21 UTC) #6
Nico
lgtm Not crazy about the Doppelganger name, but since it's limited to a single mm ...
7 years, 3 months ago (2013-09-04 15:55:11 UTC) #7
palmer
IPC security LGTM
7 years, 3 months ago (2013-09-05 19:10:32 UTC) #8
jackhou1
https://codereview.chromium.org/23514021/diff/18001/chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm File chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm (right): https://codereview.chromium.org/23514021/diff/18001/chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm#newcode93 chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm:93: keyEquivalent:(NSString*)keyEquivalent { On 2013/09/04 15:55:11, Nico wrote: > Is ...
7 years, 3 months ago (2013-09-06 05:25:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/23514021/24001
7 years, 3 months ago (2013-09-06 05:25:40 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 11:06:40 UTC) #11
Message was sent while issue was closed.
Change committed as 221676

Powered by Google App Engine
This is Rietveld 408576698