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

Issue 7065054: Removed the code that checks the tab number. (Closed)

Created:
9 years, 6 months ago by shinyak (Google)
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Removed the code that checks the tab number. 'Close Window' can be used even if a window has single tab. NOTE: Cmd+w closes a window even if there is a single tab. XIB Changes: * Make the default key equivalent of 'Close Tab' Cmd+w * Make the default key equivalent of 'Close Window' Cmd+Shift+w * Remove the referencing outlets from 'Close Tab' and 'Close Window' No other changes are made. BUG=20569 TEST=press Cmd+Shift+w on a window having only one tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88133

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixed a comment. #

Total comments: 4

Patch Set 3 : removed unnecessary codes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -186 lines) Patch
M chrome/app/nibs/MainMenu.xib View 1 2 16 chunks +24 lines, -79 lines 0 comments Download
M chrome/browser/app_controller_mac.h View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 chunks +0 lines, -97 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
shinyak (Google)
I have removed the code checking the tab number. I think it is inconsistent that ...
9 years, 6 months ago (2011-06-03 06:23:18 UTC) #1
Robert Sesek
The window still closes if you hit Cmd+W with a single tab open, correct? http://codereview.chromium.org/7065054/diff/1/chrome/app/nibs/MainMenu.xib ...
9 years, 6 months ago (2011-06-03 15:46:51 UTC) #2
shinyak (Google)
Let me do a short reply since I don't have an developing environment right now. ...
9 years, 6 months ago (2011-06-03 16:41:45 UTC) #3
shinyak (Google)
I've fixed the comment and description so that it includes XIB change.
9 years, 6 months ago (2011-06-04 06:35:46 UTC) #4
Robert Sesek
LGTM
9 years, 6 months ago (2011-06-06 14:08:53 UTC) #5
Mark Mentovai
http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm#newcode365 chrome/browser/app_controller_mac.mm:365: [closeWindowMenuItem_ setKeyEquivalent:@"W"]; Your change comment indicates that this is ...
9 years, 6 months ago (2011-06-06 16:27:15 UTC) #6
shinyak (Google)
http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm#newcode365 chrome/browser/app_controller_mac.mm:365: [closeWindowMenuItem_ setKeyEquivalent:@"W"]; On 2011/06/06 16:27:15, Mark Mentovai wrote: > ...
9 years, 6 months ago (2011-06-07 03:15:56 UTC) #7
Mark Mentovai
Thanks for your response. I’ll clarify my concern. http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm#newcode365 chrome/browser/app_controller_mac.mm:365: [closeWindowMenuItem_ ...
9 years, 6 months ago (2011-06-07 03:29:29 UTC) #8
shinyak (Google)
http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/7065054/diff/2003/chrome/browser/app_controller_mac.mm#newcode365 chrome/browser/app_controller_mac.mm:365: [closeWindowMenuItem_ setKeyEquivalent:@"W"]; Ah, OK. I understand your comment. The ...
9 years, 6 months ago (2011-06-07 03:43:04 UTC) #9
Mark Mentovai
Go for it! As I see it, you ought to be able to remove a ...
9 years, 6 months ago (2011-06-07 03:45:42 UTC) #10
shinyak (Google)
9 years, 6 months ago (2011-06-07 06:11:58 UTC) #11
Mark Mentovai
LGTM
9 years, 6 months ago (2011-06-07 13:52:01 UTC) #12
commit-bot: I haz the power
9 years, 6 months ago (2011-06-07 16:26:04 UTC) #13
Change committed as 88133

Powered by Google App Engine
This is Rietveld 408576698