| 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_LIFETIME_APPLICATION_LIFETIME_H_ | 5 #ifndef CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
| 6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 | 9 |
| 10 class Browser; | 10 class Browser; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 // Helper function to activate the desktop from Ash mode. The | 39 // Helper function to activate the desktop from Ash mode. The |
| 40 // |ash_execution_status| parameter indicates if we should exit Ash after | 40 // |ash_execution_status| parameter indicates if we should exit Ash after |
| 41 // activating desktop. | 41 // activating desktop. |
| 42 void ActivateDesktopHelper(AshExecutionStatus ash_execution_status); | 42 void ActivateDesktopHelper(AshExecutionStatus ash_execution_status); |
| 43 | 43 |
| 44 // Windows 7/8 specific: Like AttemptRestart but if chrome is running | 44 // Windows 7/8 specific: Like AttemptRestart but if chrome is running |
| 45 // in desktop mode it starts in metro mode and vice-versa. The switching like | 45 // in desktop mode it starts in metro mode and vice-versa. The switching like |
| 46 // the restarting is controlled by a preference. | 46 // the restarting is controlled by a preference. |
| 47 void AttemptRestartWithModeSwitch(); | |
| 48 void AttemptRestartToDesktopMode(); | 47 void AttemptRestartToDesktopMode(); |
| 49 // Launches Chrome into Windows 8 metro mode on Windows 8. On Windows 7 it | 48 // Launches Chrome into Windows 8 metro mode on Windows 8. On Windows 7 it |
| 50 // launches Chrome into Windows ASH. | 49 // launches Chrome into Windows ASH. |
| 51 void AttemptRestartToMetroMode(); | 50 void AttemptRestartToMetroMode(); |
| 52 #endif | 51 #endif |
| 53 | 52 |
| 54 // Attempt to exit by closing all browsers. This is equivalent to | 53 // Attempt to exit by closing all browsers. This is equivalent to |
| 55 // CloseAllBrowsers() on platforms where the application exits | 54 // CloseAllBrowsers() on platforms where the application exits |
| 56 // when no more windows are remaining. On other platforms (the Mac), | 55 // when no more windows are remaining. On other platforms (the Mac), |
| 57 // this will additionally exit the application if all browsers are | 56 // this will additionally exit the application if all browsers are |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // processing required. | 112 // processing required. |
| 114 void HandleAppExitingForPlatform(); | 113 void HandleAppExitingForPlatform(); |
| 115 | 114 |
| 116 // Returns true if we can start the shutdown sequence for the browser, i.e. the | 115 // Returns true if we can start the shutdown sequence for the browser, i.e. the |
| 117 // last browser window is being closed. | 116 // last browser window is being closed. |
| 118 bool ShouldStartShutdown(Browser* browser); | 117 bool ShouldStartShutdown(Browser* browser); |
| 119 | 118 |
| 120 } // namespace chrome | 119 } // namespace chrome |
| 121 | 120 |
| 122 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 121 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
| OLD | NEW |