| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 static string16 GetAppModelIdForProfile(const string16& app_name, | 139 static string16 GetAppModelIdForProfile(const string16& app_name, |
| 140 const FilePath& profile_path); | 140 const FilePath& profile_path); |
| 141 | 141 |
| 142 // Generates an application user model ID (AppUserModelId) for Chromium by | 142 // Generates an application user model ID (AppUserModelId) for Chromium by |
| 143 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name. | 143 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name. |
| 144 static string16 GetChromiumModelIdForProfile(const FilePath& profile_path); | 144 static string16 GetChromiumModelIdForProfile(const FilePath& profile_path); |
| 145 | 145 |
| 146 // Get the AppUserModelId for the App List, for the profile in |profile_path|. | 146 // Get the AppUserModelId for the App List, for the profile in |profile_path|. |
| 147 static string16 GetAppListAppModelIdForProfile(const FilePath& profile_path); | 147 static string16 GetAppListAppModelIdForProfile(const FilePath& profile_path); |
| 148 | 148 |
| 149 // Returns the path to the Chromium icon. This is used to specify the icon | 149 // Returns the string to the Chromium icon, (e.g., "C:\path\to\chrome.exe,0"). |
| 150 // to use for the taskbar group on Win 7. | 150 // This is used to specify the icon to use for the taskbar group on Win 7. |
| 151 static string16 GetChromiumIconPath(); | 151 static string16 GetChromiumIconString(); |
| 152 | 152 |
| 153 // Migrates existing chrome shortcuts by tagging them with correct app id. | 153 // Migrates existing chrome shortcuts by tagging them with correct app id. |
| 154 // see http://crbug.com/28104 | 154 // see http://crbug.com/28104 |
| 155 static void MigrateChromiumShortcuts(); | 155 static void MigrateChromiumShortcuts(); |
| 156 | 156 |
| 157 // Returns the path to the Start Menu shortcut for the given Chrome. | 157 // Returns the path to the Start Menu shortcut for the given Chrome. |
| 158 static FilePath GetStartMenuShortcut(const FilePath& chrome_exe); | 158 static FilePath GetStartMenuShortcut(const FilePath& chrome_exe); |
| 159 #endif // defined(OS_WIN) | 159 #endif // defined(OS_WIN) |
| 160 | 160 |
| 161 // The current default web client application UI state. This is used when | 161 // The current default web client application UI state. This is used when |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // Set Chrome as the default handler for this protocol. | 299 // Set Chrome as the default handler for this protocol. |
| 300 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 300 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; |
| 301 | 301 |
| 302 std::string protocol_; | 302 std::string protocol_; |
| 303 | 303 |
| 304 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 304 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
| 305 }; | 305 }; |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 308 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| OLD | NEW |