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_LINUX_H_ | 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ |
6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ | 6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // Returns filename of the desktop shortcut used to launch the browser. | 39 // Returns filename of the desktop shortcut used to launch the browser. |
40 std::string GetDesktopName(base::Environment* env); | 40 std::string GetDesktopName(base::Environment* env); |
41 | 41 |
42 // Returns name of the browser icon (without a path or file extension). | 42 // Returns name of the browser icon (without a path or file extension). |
43 std::string GetIconName(); | 43 std::string GetIconName(); |
44 | 44 |
45 // Returns the set of locations in which shortcuts are installed for the | 45 // Returns the set of locations in which shortcuts are installed for the |
46 // extension with |extension_id| in |profile_path|. | 46 // extension with |extension_id| in |profile_path|. |
47 // This searches the file system for .desktop files in appropriate locations. A | 47 // This searches the file system for .desktop files in appropriate locations. A |
48 // shortcut with NoDisplay=true causes hidden to become true, instead of | 48 // shortcut with NoDisplay=true causes hidden to become true, instead of |
49 // in_applications_menu. | 49 // in_applications_menu_chrome_apps_subdir. |
50 ShellIntegration::ShortcutLocations GetExistingShortcutLocations( | 50 ShellIntegration::ShortcutLocations GetExistingShortcutLocations( |
51 base::Environment* env, | 51 base::Environment* env, |
52 const base::FilePath& profile_path, | 52 const base::FilePath& profile_path, |
53 const std::string& extension_id); | 53 const std::string& extension_id); |
54 | 54 |
55 // Version of GetExistingShortcutLocations which takes an explicit path | 55 // Version of GetExistingShortcutLocations which takes an explicit path |
56 // to the user's desktop directory. Useful for testing. | 56 // to the user's desktop directory. Useful for testing. |
57 // If |desktop_path| is empty, the desktop is not searched. | 57 // If |desktop_path| is empty, the desktop is not searched. |
58 ShellIntegration::ShortcutLocations GetExistingShortcutLocations( | 58 ShellIntegration::ShortcutLocations GetExistingShortcutLocations( |
59 base::Environment* env, | 59 base::Environment* env, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void DeleteDesktopShortcuts(const base::FilePath& profile_path, | 113 void DeleteDesktopShortcuts(const base::FilePath& profile_path, |
114 const std::string& extension_id); | 114 const std::string& extension_id); |
115 | 115 |
116 // Delete any desktop shortcuts on desktop or in the application menu that have | 116 // Delete any desktop shortcuts on desktop or in the application menu that have |
117 // for the profile in |profile_path|. | 117 // for the profile in |profile_path|. |
118 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); | 118 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); |
119 | 119 |
120 } // namespace ShellIntegrationLinux | 120 } // namespace ShellIntegrationLinux |
121 | 121 |
122 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ | 122 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ |
OLD | NEW |