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

Side by Side Diff: chrome/browser/chrome_browser_main_win.h

Issue 8302016: Make GTK and Aura parts orthogonal to OS parts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Contains functions used by BrowserMain() that are win32-specific. 5 // Contains functions used by BrowserMain() that are win32-specific.
6 6
7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
9 #pragma once 9 #pragma once
10 10
11 #include "chrome/browser/chrome_browser_main.h" 11 #include "chrome/browser/chrome_browser_main.h"
12 12
13 class CommandLine; 13 class CommandLine;
14 14
15 // Handle uninstallation when given the appropriate the command-line switch. 15 // Handle uninstallation when given the appropriate the command-line switch.
16 // If |chrome_still_running| is true a modal dialog will be shown asking the 16 // If |chrome_still_running| is true a modal dialog will be shown asking the
17 // user to close the other chrome instance. 17 // user to close the other chrome instance.
18 int DoUninstallTasks(bool chrome_still_running); 18 int DoUninstallTasks(bool chrome_still_running);
19 19
20 // Prepares the localized strings that are going to be displayed to 20 // Prepares the localized strings that are going to be displayed to
21 // the user if the browser process dies. These strings are stored in the 21 // the user if the browser process dies. These strings are stored in the
22 // environment block so they are accessible in the early stages of the 22 // environment block so they are accessible in the early stages of the
23 // chrome executable's lifetime. 23 // chrome executable's lifetime.
24 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line); 24 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line);
25 25
26 // Registers Chrome with the Windows Restart Manager, which will restore the 26 // Registers Chrome with the Windows Restart Manager, which will restore the
27 // Chrome session when the computer is restarted after a system update. 27 // Chrome session when the computer is restarted after a system update.
28 void RegisterApplicationRestart(const CommandLine& parsed_command_line); 28 void RegisterApplicationRestart(const CommandLine& parsed_command_line);
29 29
30 // This method handles the --hide-icons and --show-icons command line options
31 // for chrome that get triggered by Windows from registry entries
32 // HideIconsCommand & ShowIconsCommand. Chrome doesn't support hide icons
33 // functionality so we just ask the users if they want to uninstall Chrome.
34 int HandleIconsCommands(const CommandLine& parsed_command_line);
35
36 // Check if there is any machine level Chrome installed on the current 30 // Check if there is any machine level Chrome installed on the current
37 // machine. If yes and the current Chrome process is user level, we do not 31 // machine. If yes and the current Chrome process is user level, we do not
38 // allow the user level Chrome to run. So we notify the user and uninstall 32 // allow the user level Chrome to run. So we notify the user and uninstall
39 // user level Chrome. 33 // user level Chrome.
40 bool CheckMachineLevelInstall(); 34 bool CheckMachineLevelInstall();
41 35
42 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { 36 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts {
43 public: 37 public:
44 explicit ChromeBrowserMainPartsWin(const MainFunctionParams& parameters); 38 explicit ChromeBrowserMainPartsWin(const MainFunctionParams& parameters);
45 39
46 virtual void PreMainMessageLoopStart() OVERRIDE; 40 virtual void PreMainMessageLoopStart() OVERRIDE;
41 virtual void ShowMissingLocaleMessageBox() OVERRIDE;
42 virtual int HandleIconsCommands() OVERRIDE;
43 virtual bool CheckMachineLevelInstall() OVERRIDE;
44 virtual void PrepareRestartOnCrashEnviroment() OVERRIDE;
47 }; 45 };
48 46
49 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 47 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698