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

Side by Side Diff: chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.h

Issue 898543008: Fixed "Close Window" shortcut in File Menu for Hosted/Packaged apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Close window menu item only added at beginning Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_APP_SHIM_MENU_CONTROLLER_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_APP_SHIM_MENU_CONTROLLER_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_APPS_APP_SHIM_MENU_CONTROLLER_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_APPS_APP_SHIM_MENU_CONTROLLER_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 18 matching lines...) Expand all
29 base::scoped_nsobject<DoppelgangerMenuItem> openDoppelganger_; 29 base::scoped_nsobject<DoppelgangerMenuItem> openDoppelganger_;
30 base::scoped_nsobject<DoppelgangerMenuItem> allToFrontDoppelganger_; 30 base::scoped_nsobject<DoppelgangerMenuItem> allToFrontDoppelganger_;
31 // Menu items for the currently focused packaged app. 31 // Menu items for the currently focused packaged app.
32 base::scoped_nsobject<NSMenuItem> appMenuItem_; 32 base::scoped_nsobject<NSMenuItem> appMenuItem_;
33 base::scoped_nsobject<NSMenuItem> fileMenuItem_; 33 base::scoped_nsobject<NSMenuItem> fileMenuItem_;
34 base::scoped_nsobject<NSMenuItem> editMenuItem_; 34 base::scoped_nsobject<NSMenuItem> editMenuItem_;
35 base::scoped_nsobject<NSMenuItem> windowMenuItem_; 35 base::scoped_nsobject<NSMenuItem> windowMenuItem_;
36 // Additional menu items for hosted apps. 36 // Additional menu items for hosted apps.
37 base::scoped_nsobject<NSMenuItem> viewMenuItem_; 37 base::scoped_nsobject<NSMenuItem> viewMenuItem_;
38 base::scoped_nsobject<NSMenuItem> historyMenuItem_; 38 base::scoped_nsobject<NSMenuItem> historyMenuItem_;
39 base::scoped_nsobject<NSMenuItem> closeWindowDuplicateMenuItem_;
jackhou1 2015/02/04 04:40:04 Put these above "// Menu items for the..." and add
mitchellj 2015/02/04 22:33:40 Done.
40 base::scoped_nsobject<NSMenuItem> closeTabSourceMenuItem_;
39 } 41 }
40 42
41 @end 43 @end
42 44
43 #endif // CHROME_BROWSER_UI_COCOA_APPS_APP_SHIM_MENU_CONTROLLER_MAC_H_ 45 #endif // CHROME_BROWSER_UI_COCOA_APPS_APP_SHIM_MENU_CONTROLLER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698