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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // This will be true after receiving a NSWorkspaceWillPowerOffNotification. | 112 // This will be true after receiving a NSWorkspaceWillPowerOffNotification. |
113 BOOL isPoweringOff_; | 113 BOOL isPoweringOff_; |
114 | 114 |
115 // Request to keep the browser alive during that object's lifetime. | 115 // Request to keep the browser alive during that object's lifetime. |
116 std::unique_ptr<ScopedKeepAlive> keep_alive_; | 116 std::unique_ptr<ScopedKeepAlive> keep_alive_; |
117 } | 117 } |
118 | 118 |
119 @property(readonly, nonatomic) BOOL startupComplete; | 119 @property(readonly, nonatomic) BOOL startupComplete; |
120 @property(readonly, nonatomic) Profile* lastProfile; | 120 @property(readonly, nonatomic) Profile* lastProfile; |
121 | 121 |
122 // Helper method used to update the "Signin" menu item in the main menu and the | |
123 // wrench menu to reflect the current signed in state. | |
124 + (void)updateSigninItem:(id)signinItem | |
125 shouldShow:(BOOL)showSigninMenuItem | |
126 currentProfile:(Profile*)profile; | |
127 | |
128 - (void)didEndMainMessageLoop; | 122 - (void)didEndMainMessageLoop; |
129 | 123 |
130 // Try to close all browser windows, and if that succeeds then quit. | 124 // Try to close all browser windows, and if that succeeds then quit. |
131 - (BOOL)tryToTerminateApplication:(NSApplication*)app; | 125 - (BOOL)tryToTerminateApplication:(NSApplication*)app; |
132 | 126 |
133 // Stop trying to terminate the application. That is, prevent the final browser | 127 // Stop trying to terminate the application. That is, prevent the final browser |
134 // window closure from causing the application to quit. | 128 // window closure from causing the application to quit. |
135 - (void)stopTryingToTerminateApplication:(NSApplication*)app; | 129 - (void)stopTryingToTerminateApplication:(NSApplication*)app; |
136 | 130 |
137 // Indicate that the system is powering off or logging out. | 131 // Indicate that the system is powering off or logging out. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 namespace app_controller_mac { | 187 namespace app_controller_mac { |
194 | 188 |
195 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in | 189 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in |
196 // SessionService::Observe() to get around windows/linux and mac having | 190 // SessionService::Observe() to get around windows/linux and mac having |
197 // different models of application lifetime. | 191 // different models of application lifetime. |
198 bool IsOpeningNewWindow(); | 192 bool IsOpeningNewWindow(); |
199 | 193 |
200 } // namespace app_controller_mac | 194 } // namespace app_controller_mac |
201 | 195 |
202 #endif | 196 #endif |
OLD | NEW |