Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h

Issue 9958006: Create Linux platform app shortcuts to run in their own process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved new function into shell_integration_linux.h Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
diff --git a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
index eb9e513f8200dbb5f10c5c2621c7c630bf1fbcad..1e4ded2bf7f10b5b4b2b6d67054dd7198a0ceefa 100644
--- a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
+++ b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
@@ -23,6 +23,7 @@ typedef struct _GtkWidget GtkWidget;
typedef struct _GtkWindow GtkWindow;
class Extension;
+class Profile;
class TabContentsWrapper;
class CreateApplicationShortcutsDialogGtk
@@ -48,9 +49,9 @@ class CreateApplicationShortcutsDialogGtk
// Subclasses can override it to take some action at that time.
virtual void OnCreatedShortcut(void) {}
- void CreateDesktopShortcut(
+ virtual void CreateDesktopShortcut(
const ShellIntegration::ShortcutInfo& shortcut_info);
- void ShowErrorDialog();
+ virtual void ShowErrorDialog();
GtkWindow* parent_;
@@ -101,9 +102,10 @@ class CreateChromeApplicationShortcutsDialogGtk
public ImageLoadingTracker::Observer {
public:
// Displays the dialog box to create application shortcuts for |app|.
- static void Show(GtkWindow* parent, const Extension* app);
+ static void Show(GtkWindow* parent, Profile* profile, const Extension* app);
CreateChromeApplicationShortcutsDialogGtk(GtkWindow* parent,
+ Profile* profile,
const Extension* app);
virtual ~CreateChromeApplicationShortcutsDialogGtk() {}
@@ -114,8 +116,13 @@ class CreateChromeApplicationShortcutsDialogGtk
const std::string& extension_id,
int index) OVERRIDE;
+ protected:
+ virtual void CreateDesktopShortcut(
+ const ShellIntegration::ShortcutInfo& shortcut_info) OVERRIDE;
+
private:
const Extension* app_;
+ FilePath profile_path_;
ImageLoadingTracker tracker_;
DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk);
};
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698