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

Unified Diff: chrome/browser/app_controller_mac.h

Issue 115789: Fix issue where cmd-w was hard-coded to closing a browser tab regardless of t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/nibs/en.lproj/MainMenu.xib ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.h
===================================================================
--- chrome/browser/app_controller_mac.h (revision 16871)
+++ chrome/browser/app_controller_mac.h (working copy)
@@ -34,6 +34,13 @@
// only needed during early startup, it points to a valid vector during early
// startup and is NULL during the rest of app execution.
scoped_ptr<std::vector<GURL> > pendingURLs_;
+
+ // Outlets for the close tab/window menu items so that we can adjust the
+ // commmand-key equivalent depending on the kind of window and how many
+ // tabs it has.
+ IBOutlet NSMenuItem* closeTabMenuItem_;
+ IBOutlet NSMenuItem* closeWindowMenuItem_;
+ BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion.
}
- (IBAction)quit:(id)sender;
« no previous file with comments | « chrome/app/nibs/en.lproj/MainMenu.xib ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698