| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 std::string GetDesktopFileContents(const base::FilePath& chrome_exe_path, | 64 std::string GetDesktopFileContents(const base::FilePath& chrome_exe_path, |
| 65 const std::string& app_name, | 65 const std::string& app_name, |
| 66 const GURL& url, | 66 const GURL& url, |
| 67 const std::string& extension_id, | 67 const std::string& extension_id, |
| 68 const base::FilePath& extension_path, | 68 const base::FilePath& extension_path, |
| 69 const string16& title, | 69 const string16& title, |
| 70 const std::string& icon_name, | 70 const std::string& icon_name, |
| 71 const base::FilePath& profile_path, | 71 const base::FilePath& profile_path, |
| 72 bool no_display); | 72 bool no_display); |
| 73 | 73 |
| 74 // Returns contents for .directory file named |title| with icon |icon_name|. If |
| 75 // |icon_name| is empty, will use the Chrome icon. |
| 76 std::string GetDirectoryFileContents(const string16& title, |
| 77 const std::string& icon_name); |
| 74 | 78 |
| 75 // Create shortcuts on the desktop or in the application menu (as specified by | 79 // Create shortcuts on the desktop or in the application menu (as specified by |
| 76 // |shortcut_info|), for the web page or extension in |shortcut_info|. | 80 // |shortcut_info|), for the web page or extension in |shortcut_info|. |
| 77 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut | 81 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut |
| 78 // already exists it is deleted first. | 82 // already exists it is deleted first. |
| 79 bool CreateDesktopShortcut( | 83 bool CreateDesktopShortcut( |
| 80 const ShellIntegration::ShortcutInfo& shortcut_info, | 84 const ShellIntegration::ShortcutInfo& shortcut_info, |
| 81 const ShellIntegration::ShortcutLocations& creation_locations); | 85 const ShellIntegration::ShortcutLocations& creation_locations); |
| 82 | 86 |
| 83 // Delete any desktop shortcuts on desktop or in the application menu that have | 87 // Delete any desktop shortcuts on desktop or in the application menu that have |
| 84 // been added for the extension with |extension_id| in |profile_path|. | 88 // been added for the extension with |extension_id| in |profile_path|. |
| 85 void DeleteDesktopShortcuts(const base::FilePath& profile_path, | 89 void DeleteDesktopShortcuts(const base::FilePath& profile_path, |
| 86 const std::string& extension_id); | 90 const std::string& extension_id); |
| 87 | 91 |
| 88 } // namespace ShellIntegrationLinux | 92 } // namespace ShellIntegrationLinux |
| 89 | 93 |
| 90 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ | 94 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ |
| OLD | NEW |