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

Issue 23301018: Add quit item to app menu. (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

Add quit item to app menu. This also changes the action associated with Quit Chrome when an app is focused. This is to allow Quit <app> to have the same key binding. The action closes the app instead of attempting to quit Chrome. BUG=168080, 276052 TEST=Focus an app's window. The main menu bar should contain a menu for the app which contains a Quit item. Selecting the Quit item, or using Cmd+Q quits the app. TEST=Focus an app's window. Right click Chrome's dock icon and select Quit. Chrome and all apps should quit. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220580

Patch Set 1 #

Total comments: 19

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Sync and rebase #

Patch Set 4 : Address comments #

Patch Set 5 : Change 'steal' to 'borrow'. #

Patch Set 6 : Address comments #

Patch Set 7 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -16 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 1 chunk +1 line, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm View 1 2 3 4 5 5 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jackhou1
7 years, 4 months ago (2013-08-22 02:54:49 UTC) #1
tapted
+chrome-apps-syd-reviews -- you should install Raymes' extension ;) https://codereview.chromium.org/23301018/diff/1/chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h File chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h (right): https://codereview.chromium.org/23301018/diff/1/chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h#newcode23 chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h:23: NSMenuItem* ...
7 years, 4 months ago (2013-08-22 04:40:06 UTC) #2
tapted
On 2013/08/22 04:40:06, tapted wrote: > https://codereview.chromium.org/23301018/diff/1/chrome/browser/ui/cocoa/apps/app_menu_controller_mac.mm#newcode126 > chrome/browser/ui/cocoa/apps/app_menu_controller_mac.mm:126: [quitChromeItem_ > setAction:@selector(quitCurrentPlatformApp)]; > With the ...
7 years, 4 months ago (2013-08-22 04:42:02 UTC) #3
jackhou1
https://codereview.chromium.org/23301018/diff/1/chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h File chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h (right): https://codereview.chromium.org/23301018/diff/1/chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h#newcode23 chrome/browser/ui/cocoa/apps/app_menu_controller_mac.h:23: NSMenuItem* quitChromeItem_; On 2013/08/22 04:40:06, tapted wrote: > I ...
7 years, 4 months ago (2013-08-22 06:41:01 UTC) #4
tapted
https://codereview.chromium.org/23301018/diff/1/chrome/browser/ui/cocoa/apps/app_menu_controller_mac.mm File chrome/browser/ui/cocoa/apps/app_menu_controller_mac.mm (right): https://codereview.chromium.org/23301018/diff/1/chrome/browser/ui/cocoa/apps/app_menu_controller_mac.mm#newcode126 chrome/browser/ui/cocoa/apps/app_menu_controller_mac.mm:126: [quitChromeItem_ setAction:@selector(quitCurrentPlatformApp)]; On 2013/08/22 06:41:01, jackhou1 wrote: > On ...
7 years, 4 months ago (2013-08-22 07:20:15 UTC) #5
jackhou1
> What if you just remove the condition > > if ([[app currentEvent] type] == ...
7 years, 4 months ago (2013-08-23 05:31:56 UTC) #6
jackhou1
thakis, please review as a Mac guru Note this CL is based off http://codereview.chromium.org/22867009/ Background: ...
7 years, 4 months ago (2013-08-23 05:44:30 UTC) #7
Nico
On 2013/08/23 05:44:30, jackhou1 wrote: > thakis, please review as a Mac guru > > ...
7 years, 4 months ago (2013-08-23 13:46:57 UTC) #8
jackhou1
> One thing to check: It's possible to change menu shortcuts by System Preferences > ...
7 years, 4 months ago (2013-08-26 06:12:06 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/23301018/27004
7 years, 3 months ago (2013-08-30 11:09:55 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 14:44:35 UTC) #11
Message was sent while issue was closed.
Change committed as 220580

Powered by Google App Engine
This is Rietveld 408576698