summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 16:47:13 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-20 16:47:13 +0000
commit0ba5c5e634c8e0282169fd94e119d9e4070b1e6d (patch)
treeacbc48190a9dc739c120f62e97d67a9be9beab4a /chrome/browser/tab_contents
parent797cf0cc490f960fec4bfd3de5a19d23e42c6b84 (diff)
downloadchromium_src-0ba5c5e634c8e0282169fd94e119d9e4070b1e6d.zip
chromium_src-0ba5c5e634c8e0282169fd94e119d9e4070b1e6d.tar.gz
chromium_src-0ba5c5e634c8e0282169fd94e119d9e4070b1e6d.tar.bz2
Add (incomplete) UI for creating application shortcuts on Linux
TEST=none http://crbug.com/17251 Review URL: http://codereview.chromium.org/171082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23827 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 5b630cd..9e00de5 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -45,7 +45,6 @@
#include "chrome/browser/thumbnail_store.h"
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_model.h"
-#include "chrome/browser/shell_integration.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/page_action.h"
@@ -76,7 +75,12 @@
#if defined(OS_CHROMEOS)
// For GdkScreen
#include <gdk/gdk.h>
-#endif
+#endif // defined(OS_CHROMEOS)
+
+#if defined(OS_LINUX)
+#include "chrome/browser/gtk/create_application_shortcuts_dialog_gtk.h"
+#endif // defined(OS_LINUX)
+
// Cross-Site Navigations
//
// If a TabContents is told to navigate to a different web site (as determined
@@ -756,8 +760,8 @@ void TabContents::CreateShortcut() {
return;
#if defined(OS_LINUX)
- // TODO(phajdan.jr): Finish creating shortcuts (UI etc).
- ShellIntegration::CreateDesktopShortcut(GetURL(), GetTitle());
+ CreateApplicationShortcutsDialogGtk::Show(view()->GetTopLevelNativeWindow(),
+ GetURL(), GetTitle());
#else
// We only allow one pending install request. By resetting the page id we
// effectively cancel the pending install request.