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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut | 52 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut |
53 // already exists it is deleted first. | 53 // already exists it is deleted first. |
54 bool CreateDesktopShortcut(const ShellIntegration::ShortcutInfo& shortcut_info, | 54 bool CreateDesktopShortcut(const ShellIntegration::ShortcutInfo& shortcut_info, |
55 const std::string& shortcut_template); | 55 const std::string& shortcut_template); |
56 | 56 |
57 // Delete any desktop shortcuts on desktop or in the application menu that have | 57 // Delete any desktop shortcuts on desktop or in the application menu that have |
58 // been added for the extension with |extension_id| in |profile_path|. | 58 // been added for the extension with |extension_id| in |profile_path|. |
59 void DeleteDesktopShortcuts(const FilePath& profile_path, | 59 void DeleteDesktopShortcuts(const FilePath& profile_path, |
60 const std::string& extension_id); | 60 const std::string& extension_id); |
61 | 61 |
| 62 // Launch the default system browser to navigate url. |
| 63 void LaunchDefaultBrowser(const GURL& url); |
| 64 |
62 } // namespace ShellIntegrationLinux | 65 } // namespace ShellIntegrationLinux |
63 | 66 |
64 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ | 67 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ |
OLD | NEW |