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

Issue 23005021: Replicate standard menus for apps. (Closed)

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

Description

Replicate standard menus for apps. This maintains a duplicate set of menus for standard items. This enables keyboard shortcuts to work as expected when the Chrome menus are hidden. This also adds tags to various items in MainMenu.xib using existing and new entries from chrome_command_ids.h. The tags are used to look up items in the main menu. BUG=168080, 276052 TEST=When an app window is focused, the main menu should change to a set of menus relevant to apps. I.e. Chrome specific menus/items should be hidden. The item in the menus should behave as expected for the app. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220659

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Patch Set 3 : Find items by tag. #

Patch Set 4 : Update tests #

Total comments: 16

Patch Set 5 : Address comments #

Total comments: 6

Patch Set 6 : Address comments #

Patch Set 7 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -22 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/app/nibs/MainMenu.xib View 1 2 17 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm View 1 2 3 4 5 5 chunks +69 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm View 1 2 3 4 5 4 chunks +22 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jackhou1
7 years, 4 months ago (2013-08-22 02:59:53 UTC) #1
tapted
+chrome-apps-syd-reviews This will need some tests too. And.. it feels like there should be a ...
7 years, 4 months ago (2013-08-22 05:16:15 UTC) #2
jackhou1
> This will need some tests too. Done. > So, I think a nicer approach ...
7 years, 3 months ago (2013-08-29 04:25:21 UTC) #3
tapted
looking pretty good! A TEST= line would probably be an improvement too https://codereview.chromium.org/23005021/diff/11001/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h ...
7 years, 3 months ago (2013-08-29 06:06:19 UTC) #4
jackhou1
https://codereview.chromium.org/23005021/diff/11001/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h (right): https://codereview.chromium.org/23005021/diff/11001/chrome/app/chrome_command_ids.h#newcode73 chrome/app/chrome_command_ids.h:73: #define IDC_MINIMIZE 34046 On 2013/08/29 06:06:19, tapted wrote: > ...
7 years, 3 months ago (2013-08-29 06:30:02 UTC) #5
tapted
lgtm % what UX say.. and provided all the rest lands
7 years, 3 months ago (2013-08-29 07:11:55 UTC) #6
jackhou1
thakis, please review for OWNERS
7 years, 3 months ago (2013-08-29 07:15:49 UTC) #7
Nico
When changing xib files, please describe what you did there in the CL description (as ...
7 years, 3 months ago (2013-08-29 17:14:08 UTC) #8
Nico
lgtm with cl description updated with xib changes and with addressing the below comments in ...
7 years, 3 months ago (2013-08-29 17:19:37 UTC) #9
jackhou1
https://codereview.chromium.org/23005021/diff/20001/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/23005021/diff/20001/chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm#newcode30 chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm:30: NSMenuItem* DuplicateTopLevelItem(NSInteger menu_tag) { On 2013/08/29 17:19:38, Nico wrote: ...
7 years, 3 months ago (2013-08-30 01:30:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/23005021/33001
7 years, 3 months ago (2013-08-30 17:40:15 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 21:20:58 UTC) #12
Message was sent while issue was closed.
Change committed as 220659

Powered by Google App Engine
This is Rietveld 408576698