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

Issue 115789: Fix issue where cmd-w was hard-coded to closing a browser tab regardless of t... (Closed)

Created:
11 years, 7 months ago by pink (ping after 24hrs)
Modified:
9 years, 7 months ago
Reviewers:
TVL
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix issue where cmd-w was hard-coded to closing a browser tab regardless of the frontmost window type. Have cmd-key equiv correctly set depending on the window type and the number of tabs in the window. Broadcast notification when the number of tabs changes in the model. Disable "close tab" item when there's only 1 tab in the browser window. BUG=10047 TEST=cmd-w correctly closes the expected thing (frontmost window, or tab in the frontmost window). close tab should be disabled when the frontmost tab is not a browser or if there is only 1 tab in the window. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16981

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -47 lines) Patch
M chrome/app/nibs/en.lproj/MainMenu.xib View 9 chunks +35 lines, -47 lines 0 comments Download
M chrome/browser/app_controller_mac.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 3 chunks +112 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller_unittest.mm View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
pink (ping after 24hrs)
11 years, 7 months ago (2009-05-26 20:28:19 UTC) #1
TVL
lgtm do we disable close tab if it's not a tabbed window in the front?
11 years, 7 months ago (2009-05-26 20:45:40 UTC) #2
TVL
11 years, 7 months ago (2009-05-26 21:10:56 UTC) #3
lgtm

Powered by Google App Engine
This is Rietveld 408576698