Chromium Code Reviews| 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 18 matching lines...) Expand all Loading... | |
| 29 // ChromeOS, this simply exits the chrome, which lets sesssion | 29 // ChromeOS, this simply exits the chrome, which lets sesssion |
| 30 // manager re-launch the browser with restore last session flag. | 30 // manager re-launch the browser with restore last session flag. |
| 31 void AttemptRestart(); | 31 void AttemptRestart(); |
| 32 | 32 |
| 33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
| 34 enum AshExecutionStatus { | 34 enum AshExecutionStatus { |
| 35 ASH_KEEP_RUNNING, | 35 ASH_KEEP_RUNNING, |
| 36 ASH_TERMINATE, | 36 ASH_TERMINATE, |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 void MetroExitHelper(); | |
|
sky
2014/01/09 16:40:05
Description?
zturner
2014/01/10 19:00:26
I just removed this function instead.
| |
| 40 | |
| 39 // Helper function to activate the desktop from Ash mode. The | 41 // Helper function to activate the desktop from Ash mode. The |
| 40 // |ash_execution_status| parameter indicates if we should exit Ash after | 42 // |ash_execution_status| parameter indicates if we should exit Ash after |
| 41 // activating desktop. | 43 // activating desktop. |
| 42 void ActivateDesktopHelper(AshExecutionStatus ash_execution_status); | 44 void ActivateDesktopHelper(AshExecutionStatus ash_execution_status); |
| 43 | 45 |
| 44 // Windows 8 specific: Like AttemptRestart but if chrome is running | 46 // Windows 8 specific: Like AttemptRestart but if chrome is running |
| 45 // in desktop mode it starts in metro mode and vice-versa. The switching like | 47 // in desktop mode it starts in metro mode and vice-versa. The switching like |
| 46 // the restarting is controlled by a preference. | 48 // the restarting is controlled by a preference. |
| 47 void AttemptRestartWithModeSwitch(); | 49 void AttemptRestartWithModeSwitch(); |
| 48 void AttemptRestartToDesktopMode(); | 50 void AttemptRestartToDesktopMode(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 // processing required. | 110 // processing required. |
| 109 void HandleAppExitingForPlatform(); | 111 void HandleAppExitingForPlatform(); |
| 110 | 112 |
| 111 // Returns true if we can start the shutdown sequence for the browser, i.e. the | 113 // Returns true if we can start the shutdown sequence for the browser, i.e. the |
| 112 // last browser window is being closed. | 114 // last browser window is being closed. |
| 113 bool ShouldStartShutdown(Browser* browser); | 115 bool ShouldStartShutdown(Browser* browser); |
| 114 | 116 |
| 115 } // namespace chrome | 117 } // namespace chrome |
| 116 | 118 |
| 117 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ | 119 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ |
| OLD | NEW |