| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // chrome::kBrowserAppID as app_name. | 117 // chrome::kBrowserAppID as app_name. |
| 118 static string16 GetChromiumAppId(const FilePath& profile_path); | 118 static string16 GetChromiumAppId(const FilePath& profile_path); |
| 119 | 119 |
| 120 // Returns the path to the Chromium icon. This is used to specify the icon | 120 // Returns the path to the Chromium icon. This is used to specify the icon |
| 121 // to use for the taskbar group on Win 7. | 121 // to use for the taskbar group on Win 7. |
| 122 static string16 GetChromiumIconPath(); | 122 static string16 GetChromiumIconPath(); |
| 123 | 123 |
| 124 // Migrates existing chrome shortcuts by tagging them with correct app id. | 124 // Migrates existing chrome shortcuts by tagging them with correct app id. |
| 125 // see http://crbug.com/28104 | 125 // see http://crbug.com/28104 |
| 126 static void MigrateChromiumShortcuts(); | 126 static void MigrateChromiumShortcuts(); |
| 127 |
| 128 // Activates Chrome in metro-mode on Windows 8. Returns false if called on |
| 129 // earlier versions of Windows, if called from within metro-mode, if Chrome |
| 130 // is not the default browser, or if an actual error occurs. |
| 131 static bool ActivateMetroChrome(); |
| 127 #endif // defined(OS_WIN) | 132 #endif // defined(OS_WIN) |
| 128 | 133 |
| 129 // The current default web client application UI state. This is used when | 134 // The current default web client application UI state. This is used when |
| 130 // querying if Chrome is the default browser or the default handler | 135 // querying if Chrome is the default browser or the default handler |
| 131 // application for a url protocol, and communicates the state and result of | 136 // application for a url protocol, and communicates the state and result of |
| 132 // a request. | 137 // a request. |
| 133 enum DefaultWebClientUIState { | 138 enum DefaultWebClientUIState { |
| 134 STATE_PROCESSING, | 139 STATE_PROCESSING, |
| 135 STATE_NOT_DEFAULT, | 140 STATE_NOT_DEFAULT, |
| 136 STATE_IS_DEFAULT, | 141 STATE_IS_DEFAULT, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // Set Chrome as the default handler for this protocol. | 260 // Set Chrome as the default handler for this protocol. |
| 256 virtual void SetAsDefault() OVERRIDE; | 261 virtual void SetAsDefault() OVERRIDE; |
| 257 | 262 |
| 258 std::string protocol_; | 263 std::string protocol_; |
| 259 | 264 |
| 260 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 265 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
| 261 }; | 266 }; |
| 262 }; | 267 }; |
| 263 | 268 |
| 264 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 269 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| OLD | NEW |