Chromium Code Reviews| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 static string16 GetChromiumIconLocation(); | 170 static string16 GetChromiumIconLocation(); | 
| 171 | 171 | 
| 172 // Migrates existing chrome shortcuts by tagging them with correct app id. | 172 // Migrates existing chrome shortcuts by tagging them with correct app id. | 
| 173 // see http://crbug.com/28104 | 173 // see http://crbug.com/28104 | 
| 174 static void MigrateChromiumShortcuts(); | 174 static void MigrateChromiumShortcuts(); | 
| 175 | 175 | 
| 176 // Migrates all shortcuts in |path| which point to |chrome_exe| such that they | 176 // Migrates all shortcuts in |path| which point to |chrome_exe| such that they | 
| 177 // have the appropriate AppUserModelId. Also makes sure those shortcuts have | 177 // have the appropriate AppUserModelId. Also makes sure those shortcuts have | 
| 178 // the dual_mode property set if such is requested by |check_dual_mode|. | 178 // the dual_mode property set if such is requested by |check_dual_mode|. | 
| 179 // Returns the number of shortcuts migrated. | 179 // Returns the number of shortcuts migrated. | 
| 180 // This method should not be called prior to Windows 7. | 180 // This method should not be called prior to Windows 7. | 
| 
 
koz (OOO until 15th September)
2013/04/18 02:16:33
I just noticed this comment. The app launcher work
 
calamity
2013/04/18 08:24:34
Done by koz@.
 
 | |
| 181 // This method is only public for the sake of tests and shouldn't be called | 181 // This method is only public for the sake of tests and shouldn't be called | 
| 182 // externally otherwise. | 182 // externally otherwise. | 
| 183 // Migrates shortcuts that point to |app_host_exe| to point to |chrome_exe|. | |
| 183 static int MigrateShortcutsInPathInternal(const base::FilePath& chrome_exe, | 184 static int MigrateShortcutsInPathInternal(const base::FilePath& chrome_exe, | 
| 185 const base::FilePath& app_host_exe, | |
| 184 const base::FilePath& path, | 186 const base::FilePath& path, | 
| 185 bool check_dual_mode); | 187 bool check_dual_mode, | 
| 188 bool recursive); | |
| 186 | 189 | 
| 187 // Returns the path to the Start Menu shortcut for the given Chrome. | 190 // Returns the path to the Start Menu shortcut for the given Chrome. | 
| 188 static base::FilePath GetStartMenuShortcut(const base::FilePath& chrome_exe); | 191 static base::FilePath GetStartMenuShortcut(const base::FilePath& chrome_exe); | 
| 189 #endif // defined(OS_WIN) | 192 #endif // defined(OS_WIN) | 
| 190 | 193 | 
| 191 // The current default web client application UI state. This is used when | 194 // The current default web client application UI state. This is used when | 
| 192 // querying if Chrome is the default browser or the default handler | 195 // querying if Chrome is the default browser or the default handler | 
| 193 // application for a url protocol, and communicates the state and result of | 196 // application for a url protocol, and communicates the state and result of | 
| 194 // a request. | 197 // a request. | 
| 195 enum DefaultWebClientUIState { | 198 enum DefaultWebClientUIState { | 
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 329 // Set Chrome as the default handler for this protocol. | 332 // Set Chrome as the default handler for this protocol. | 
| 330 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 333 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 
| 331 | 334 | 
| 332 std::string protocol_; | 335 std::string protocol_; | 
| 333 | 336 | 
| 334 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 337 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 
| 335 }; | 338 }; | 
| 336 }; | 339 }; | 
| 337 | 340 | 
| 338 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 341 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 
| OLD | NEW |