OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_APP_CONTROLLER_MAC_H_ | 5 #ifndef CHROME_BROWSER_APP_CONTROLLER_MAC_H_ |
6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_ | 6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 // Management of the bookmark menu which spans across all windows | 27 // Management of the bookmark menu which spans across all windows |
28 // (and Browser*s). | 28 // (and Browser*s). |
29 scoped_ptr<BookmarkMenuBridge> bookmarkMenuBridge_; | 29 scoped_ptr<BookmarkMenuBridge> bookmarkMenuBridge_; |
30 scoped_nsobject<PreferencesWindowController> prefsController_; | 30 scoped_nsobject<PreferencesWindowController> prefsController_; |
31 scoped_nsobject<AboutWindowController> aboutController_; | 31 scoped_nsobject<AboutWindowController> aboutController_; |
32 | 32 |
33 // URLs that need to be opened when the app is fully initialized. Because it's | 33 // URLs that need to be opened when the app is fully initialized. Because it's |
34 // only needed during early startup, it points to a valid vector during early | 34 // only needed during early startup, it points to a valid vector during early |
35 // startup and is NULL during the rest of app execution. | 35 // startup and is NULL during the rest of app execution. |
36 scoped_ptr<std::vector<GURL> > pendingURLs_; | 36 scoped_ptr<std::vector<GURL> > pendingURLs_; |
| 37 |
| 38 // Outlets for the close tab/window menu items so that we can adjust the |
| 39 // commmand-key equivalent depending on the kind of window and how many |
| 40 // tabs it has. |
| 41 IBOutlet NSMenuItem* closeTabMenuItem_; |
| 42 IBOutlet NSMenuItem* closeWindowMenuItem_; |
| 43 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. |
37 } | 44 } |
38 | 45 |
39 - (IBAction)quit:(id)sender; | 46 - (IBAction)quit:(id)sender; |
40 - (Profile*)defaultProfile; | 47 - (Profile*)defaultProfile; |
41 | 48 |
42 // Show the preferences window, or bring it to the front if it's already | 49 // Show the preferences window, or bring it to the front if it's already |
43 // visible. | 50 // visible. |
44 - (IBAction)showPreferences:(id)sender; | 51 - (IBAction)showPreferences:(id)sender; |
45 | 52 |
46 // Redirect in the menu item from the expected target of "File's | 53 // Redirect in the menu item from the expected target of "File's |
47 // Owner" (NSAppliation) for a Branded About Box | 54 // Owner" (NSAppliation) for a Branded About Box |
48 - (IBAction)orderFrontStandardAboutPanel:(id)sender; | 55 - (IBAction)orderFrontStandardAboutPanel:(id)sender; |
49 | 56 |
50 @end | 57 @end |
51 | 58 |
52 #endif | 59 #endif |
OLD | NEW |