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 |
11 #include "base/scoped_nsobject.h" | 11 #include "base/scoped_nsobject.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 | 13 |
14 @class AboutWindowController; | 14 @class AboutWindowController; |
15 class BookmarkMenuBridge; | 15 class BookmarkMenuBridge; |
16 class CommandUpdater; | 16 class CommandUpdater; |
| 17 @class CrApplication; |
17 class GURL; | 18 class GURL; |
18 class HistoryMenuBridge; | 19 class HistoryMenuBridge; |
19 @class PreferencesWindowController; | 20 @class PreferencesWindowController; |
20 class Profile; | 21 class Profile; |
21 | 22 |
22 // The application controller object, created by loading the MainMenu nib. | 23 // The application controller object, created by loading the MainMenu nib. |
23 // This handles things like responding to menus when there are no windows | 24 // This handles things like responding to menus when there are no windows |
24 // open, etc and acts as the NSApplication delegate. | 25 // open, etc and acts as the NSApplication delegate. |
25 @interface AppController : NSObject<NSUserInterfaceValidations> { | 26 @interface AppController : NSObject<NSUserInterfaceValidations> { |
26 @private | 27 @private |
(...skipping 11 matching lines...) Expand all Loading... |
38 scoped_ptr<std::vector<GURL> > pendingURLs_; | 39 scoped_ptr<std::vector<GURL> > pendingURLs_; |
39 | 40 |
40 // Outlets for the close tab/window menu items so that we can adjust the | 41 // Outlets for the close tab/window menu items so that we can adjust the |
41 // commmand-key equivalent depending on the kind of window and how many | 42 // commmand-key equivalent depending on the kind of window and how many |
42 // tabs it has. | 43 // tabs it has. |
43 IBOutlet NSMenuItem* closeTabMenuItem_; | 44 IBOutlet NSMenuItem* closeTabMenuItem_; |
44 IBOutlet NSMenuItem* closeWindowMenuItem_; | 45 IBOutlet NSMenuItem* closeWindowMenuItem_; |
45 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. | 46 BOOL fileMenuUpdatePending_; // ensure we only do this once per notificaion. |
46 } | 47 } |
47 | 48 |
48 - (IBAction)quit:(id)sender; | 49 - (void)didEndMainMessageLoop; |
49 - (Profile*)defaultProfile; | 50 - (Profile*)defaultProfile; |
50 | 51 |
51 // Show the preferences window, or bring it to the front if it's already | 52 // Show the preferences window, or bring it to the front if it's already |
52 // visible. | 53 // visible. |
53 - (IBAction)showPreferences:(id)sender; | 54 - (IBAction)showPreferences:(id)sender; |
54 | 55 |
55 // Redirect in the menu item from the expected target of "File's | 56 // Redirect in the menu item from the expected target of "File's |
56 // Owner" (NSAppliation) for a Branded About Box | 57 // Owner" (NSAppliation) for a Branded About Box |
57 - (IBAction)orderFrontStandardAboutPanel:(id)sender; | 58 - (IBAction)orderFrontStandardAboutPanel:(id)sender; |
58 | 59 |
59 @end | 60 @end |
60 | 61 |
61 #endif | 62 #endif |
OLD | NEW |