OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #if defined(__OBJC__) | 8 #if defined(__OBJC__) |
9 | 9 |
10 #import <Cocoa/Cocoa.h> | 10 #import <Cocoa/Cocoa.h> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 scoped_ptr<HandoffActiveURLObserverBridge> | 105 scoped_ptr<HandoffActiveURLObserverBridge> |
106 handoff_active_url_observer_bridge_; | 106 handoff_active_url_observer_bridge_; |
107 | 107 |
108 // This will be true after receiving a NSWorkspaceWillPowerOffNotification. | 108 // This will be true after receiving a NSWorkspaceWillPowerOffNotification. |
109 BOOL isPoweringOff_; | 109 BOOL isPoweringOff_; |
110 } | 110 } |
111 | 111 |
112 @property(readonly, nonatomic) BOOL startupComplete; | 112 @property(readonly, nonatomic) BOOL startupComplete; |
113 @property(readonly, nonatomic) Profile* lastProfile; | 113 @property(readonly, nonatomic) Profile* lastProfile; |
114 | 114 |
115 // Helper method used to update the "Signin" menu item in the main menu and the | |
116 // wrench menu to reflect the current signed in state. | |
117 + (void)updateSigninItem:(id)signinItem | |
118 shouldShow:(BOOL)showSigninMenuItem | |
119 currentProfile:(Profile*)profile; | |
120 | |
121 - (void)didEndMainMessageLoop; | 115 - (void)didEndMainMessageLoop; |
122 | 116 |
123 // Try to close all browser windows, and if that succeeds then quit. | 117 // Try to close all browser windows, and if that succeeds then quit. |
124 - (BOOL)tryToTerminateApplication:(NSApplication*)app; | 118 - (BOOL)tryToTerminateApplication:(NSApplication*)app; |
125 | 119 |
126 // Stop trying to terminate the application. That is, prevent the final browser | 120 // Stop trying to terminate the application. That is, prevent the final browser |
127 // window closure from causing the application to quit. | 121 // window closure from causing the application to quit. |
128 - (void)stopTryingToTerminateApplication:(NSApplication*)app; | 122 - (void)stopTryingToTerminateApplication:(NSApplication*)app; |
129 | 123 |
130 // Indicate that the system is powering off or logging out. | 124 // Indicate that the system is powering off or logging out. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 namespace app_controller_mac { | 176 namespace app_controller_mac { |
183 | 177 |
184 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in | 178 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in |
185 // SessionService::Observe() to get around windows/linux and mac having | 179 // SessionService::Observe() to get around windows/linux and mac having |
186 // different models of application lifetime. | 180 // different models of application lifetime. |
187 bool IsOpeningNewWindow(); | 181 bool IsOpeningNewWindow(); |
188 | 182 |
189 } // namespace app_controller_mac | 183 } // namespace app_controller_mac |
190 | 184 |
191 #endif | 185 #endif |
OLD | NEW |