Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/browser/lifetime/application_lifetime.h

Issue 498573003: Add relaunch into ASH and desktop support for Chrome on Windows 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed menu strings to Chrome OS mode Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 23 matching lines...) Expand all
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 // 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 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(); 47 void AttemptRestartWithModeSwitch();
48 void AttemptRestartToDesktopMode(); 48 void AttemptRestartToDesktopMode();
49 // Launches Chrome into Windows 8 metro mode on Windows 8. On Windows 7 it
50 // launches Chrome into Windows ASH.
49 void AttemptRestartToMetroMode(); 51 void AttemptRestartToMetroMode();
50 #endif 52 #endif
51 53
52 // Attempt to exit by closing all browsers. This is equivalent to 54 // Attempt to exit by closing all browsers. This is equivalent to
53 // CloseAllBrowsers() on platforms where the application exits 55 // CloseAllBrowsers() on platforms where the application exits
54 // when no more windows are remaining. On other platforms (the Mac), 56 // when no more windows are remaining. On other platforms (the Mac),
55 // this will additionally exit the application if all browsers are 57 // this will additionally exit the application if all browsers are
56 // successfully closed. 58 // successfully closed.
57 // Note that he exit process may be interrupted by download or 59 // Note that he exit process may be interrupted by download or
58 // unload handler, and the browser may or may not exit. 60 // unload handler, and the browser may or may not exit.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // processing required. 113 // processing required.
112 void HandleAppExitingForPlatform(); 114 void HandleAppExitingForPlatform();
113 115
114 // Returns true if we can start the shutdown sequence for the browser, i.e. the 116 // Returns true if we can start the shutdown sequence for the browser, i.e. the
115 // last browser window is being closed. 117 // last browser window is being closed.
116 bool ShouldStartShutdown(Browser* browser); 118 bool ShouldStartShutdown(Browser* browser);
117 119
118 } // namespace chrome 120 } // namespace chrome
119 121
120 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ 122 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698