| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Outlet for the help menu so we can bless it so Cocoa adds the search item | 49 // Outlet for the help menu so we can bless it so Cocoa adds the search item |
| 50 // to it. | 50 // to it. |
| 51 IBOutlet NSMenu* helpMenu_; | 51 IBOutlet NSMenu* helpMenu_; |
| 52 } | 52 } |
| 53 | 53 |
| 54 @property(readonly, nonatomic) BOOL startupComplete; | 54 @property(readonly, nonatomic) BOOL startupComplete; |
| 55 | 55 |
| 56 - (void)didEndMainMessageLoop; | 56 - (void)didEndMainMessageLoop; |
| 57 - (Profile*)defaultProfile; | 57 - (Profile*)defaultProfile; |
| 58 | 58 |
| 59 // Try to close all browser windows, and if that succeeds then quit. |
| 60 - (BOOL)tryToTerminateApplication:(NSApplication*)app; |
| 61 |
| 62 // Stop trying to terminate the application. That is, prevent the final browser |
| 63 // window closure from causing the application to quit. |
| 64 - (void)stopTryingToTerminateApplication:(NSApplication*)app; |
| 65 |
| 59 // Show the preferences window, or bring it to the front if it's already | 66 // Show the preferences window, or bring it to the front if it's already |
| 60 // visible. | 67 // visible. |
| 61 - (IBAction)showPreferences:(id)sender; | 68 - (IBAction)showPreferences:(id)sender; |
| 62 | 69 |
| 63 // Redirect in the menu item from the expected target of "File's | 70 // Redirect in the menu item from the expected target of "File's |
| 64 // Owner" (NSAppliation) for a Branded About Box | 71 // Owner" (NSAppliation) for a Branded About Box |
| 65 - (IBAction)orderFrontStandardAboutPanel:(id)sender; | 72 - (IBAction)orderFrontStandardAboutPanel:(id)sender; |
| 66 | 73 |
| 67 // Delegate method to return the dock menu. | 74 // Delegate method to return the dock menu. |
| 68 - (NSMenu*)applicationDockMenu:(NSApplication*)sender; | 75 - (NSMenu*)applicationDockMenu:(NSApplication*)sender; |
| 69 | 76 |
| 70 // Get the URLs that Launch Services expects the browser to open at startup. | 77 // Get the URLs that Launch Services expects the browser to open at startup. |
| 71 - (const std::vector<GURL>&)startupUrls; | 78 - (const std::vector<GURL>&)startupUrls; |
| 72 | 79 |
| 73 // Clear the list of startup URLs. | 80 // Clear the list of startup URLs. |
| 74 - (void)clearStartupUrls; | 81 - (void)clearStartupUrls; |
| 75 | 82 |
| 76 @end | 83 @end |
| 77 | 84 |
| 78 #endif | 85 #endif |
| OLD | NEW |