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

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

Issue 10914152: Fix the blocked pluigin infobar for metro mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/lifetime/application_lifetime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace browser { 8 namespace browser {
9 9
10 // Starts a user initiated exit process. Called from Browser::Exit. 10 // Starts a user initiated exit process. Called from Browser::Exit.
11 // On platforms other than ChromeOS, this is equivalent to 11 // On platforms other than ChromeOS, this is equivalent to
12 // CloseAllBrowsers() On ChromeOS, this tells session manager 12 // CloseAllBrowsers() On ChromeOS, this tells session manager
13 // that chrome is signing out, which lets session manager send 13 // that chrome is signing out, which lets session manager send
14 // SIGTERM to start actual exit process. 14 // SIGTERM to start actual exit process.
15 void AttemptUserExit(); 15 void AttemptUserExit();
16 16
17 // Starts a user initiated restart process. On platforms other than 17 // Starts a user initiated restart process. On platforms other than
18 // chromeos, this sets a restart bit in the preference so that 18 // chromeos, this sets a restart bit in the preference so that
19 // chrome will be restarted at the end of shutdown process. On 19 // chrome will be restarted at the end of shutdown process. On
20 // ChromeOS, this simply exits the chrome, which lets sesssion 20 // ChromeOS, this simply exits the chrome, which lets sesssion
21 // manager re-launch the browser with restore last session flag. 21 // manager re-launch the browser with restore last session flag.
22 void AttemptRestart(); 22 void AttemptRestart();
23 23
24 #if defined(OS_WIN)
25 // Windows 8 specific: Like AttemptRestart but if chrome is running
26 // in desktop mode it starts in metro mode and vice-versa. The switching like
27 // the restarting is controlled by a preference.
28 void AttemptRestartWithModeSwitch();
29 #endif
30
24 // Attempt to exit by closing all browsers. This is equivalent to 31 // Attempt to exit by closing all browsers. This is equivalent to
25 // CloseAllBrowsers() on platforms where the application exits 32 // CloseAllBrowsers() on platforms where the application exits
26 // when no more windows are remaining. On other platforms (the Mac), 33 // when no more windows are remaining. On other platforms (the Mac),
27 // this will additionally exit the application if all browsers are 34 // this will additionally exit the application if all browsers are
28 // successfully closed. 35 // successfully closed.
29 // Note that he exit process may be interrupted by download or 36 // Note that he exit process may be interrupted by download or
30 // unload handler, and the browser may or may not exit. 37 // unload handler, and the browser may or may not exit.
31 void AttemptExit(); 38 void AttemptExit();
32 39
33 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Called once the application is exiting. 79 // Called once the application is exiting.
73 void OnAppExiting(); 80 void OnAppExiting();
74 81
75 // Called once the application is exiting to do any platform specific 82 // Called once the application is exiting to do any platform specific
76 // processing required. 83 // processing required.
77 void HandleAppExitingForPlatform(); 84 void HandleAppExitingForPlatform();
78 85
79 } // namespace browser 86 } // namespace browser
80 87
81 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ 88 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/lifetime/application_lifetime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698