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_SHELL_INTEGRATION_H_ | 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_ |
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ | 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 static string16 GetChromiumIconPath(); | 143 static string16 GetChromiumIconPath(); |
144 | 144 |
145 // Migrates existing chrome shortcuts by tagging them with correct app id. | 145 // Migrates existing chrome shortcuts by tagging them with correct app id. |
146 // see http://crbug.com/28104 | 146 // see http://crbug.com/28104 |
147 static void MigrateChromiumShortcuts(); | 147 static void MigrateChromiumShortcuts(); |
148 | 148 |
149 // Activates Chrome in metro-mode on Windows 8. Returns false if called on | 149 // Activates Chrome in metro-mode on Windows 8. Returns false if called on |
150 // earlier versions of Windows, if called from within metro-mode, if Chrome | 150 // earlier versions of Windows, if called from within metro-mode, if Chrome |
151 // is not the default browser, or if an actual error occurs. | 151 // is not the default browser, or if an actual error occurs. |
152 static bool ActivateMetroChrome(); | 152 static bool ActivateMetroChrome(); |
| 153 |
| 154 // Returns the path to the Start Menu shortcut for the given Chrome. |
| 155 static FilePath GetStartMenuShortcut(const FilePath& chrome_exe); |
153 #endif // defined(OS_WIN) | 156 #endif // defined(OS_WIN) |
154 | 157 |
155 // The current default web client application UI state. This is used when | 158 // The current default web client application UI state. This is used when |
156 // querying if Chrome is the default browser or the default handler | 159 // querying if Chrome is the default browser or the default handler |
157 // application for a url protocol, and communicates the state and result of | 160 // application for a url protocol, and communicates the state and result of |
158 // a request. | 161 // a request. |
159 enum DefaultWebClientUIState { | 162 enum DefaultWebClientUIState { |
160 STATE_PROCESSING, | 163 STATE_PROCESSING, |
161 STATE_NOT_DEFAULT, | 164 STATE_NOT_DEFAULT, |
162 STATE_IS_DEFAULT, | 165 STATE_IS_DEFAULT, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // Set Chrome as the default handler for this protocol. | 296 // Set Chrome as the default handler for this protocol. |
294 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 297 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; |
295 | 298 |
296 std::string protocol_; | 299 std::string protocol_; |
297 | 300 |
298 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 301 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
299 }; | 302 }; |
300 }; | 303 }; |
301 | 304 |
302 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 305 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
OLD | NEW |