summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_integration.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 23:39:44 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 23:39:44 +0000
commit428968077d666b47265bc5bd9d828a1a603044d4 (patch)
tree81d9f401096b8ee9477db7032149fe26e1b7d65c /chrome/browser/shell_integration.h
parentd5d593a7612d84a49698c73c52ef445b76a367f0 (diff)
downloadchromium_src-428968077d666b47265bc5bd9d828a1a603044d4.zip
chromium_src-428968077d666b47265bc5bd9d828a1a603044d4.tar.gz
chromium_src-428968077d666b47265bc5bd9d828a1a603044d4.tar.bz2
Implement creating shortcuts in the applications menu.
TEST=none http://crbug.com/17251 Review URL: http://codereview.chromium.org/179008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24836 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration.h')
-rw-r--r--chrome/browser/shell_integration.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h
index 9abfadd..2bc955c 100644
--- a/chrome/browser/shell_integration.h
+++ b/chrome/browser/shell_integration.h
@@ -10,9 +10,9 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
#include "base/string16.h"
+#include "googleurl/src/gurl.h"
class FilePath;
-class GURL;
class MessageLoop;
class ShellIntegration {
@@ -42,10 +42,18 @@ class ShellIntegration {
const std::string& template_contents, const GURL& url,
const string16& title);
- // Creates a desktop shortcut for |url| with |title|. It is not guaranteed
- // to exist immediately after returning from this function, because actual
- // file operation is done on the file thread.
- static void CreateDesktopShortcut(const GURL& url, const string16& title);
+ struct ShortcutInfo {
+ GURL url;
+ string16 title;
+
+ bool create_on_desktop;
+ bool create_in_applications_menu;
+ };
+
+ // Creates a desktop shortcut. It is not guaranteed to exist immediately after
+ // returning from this function, because actual file operation is done on the
+ // file thread.
+ static void CreateDesktopShortcut(const ShortcutInfo& shortcut_info);
#endif // defined(OS_LINUX)
// The current default browser UI state