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

Side by Side Diff: chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: fix linux Created 7 years, 2 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 unified diff | Download patch
OLDNEW
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_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual void ShowErrorDialog(); 63 virtual void ShowErrorDialog();
64 64
65 GtkWindow* parent_; 65 GtkWindow* parent_;
66 66
67 // UI elements. 67 // UI elements.
68 GtkWidget* desktop_checkbox_; 68 GtkWidget* desktop_checkbox_;
69 GtkWidget* menu_checkbox_; 69 GtkWidget* menu_checkbox_;
70 70
71 // ShortcutInfo for the new shortcut. 71 // ShortcutInfo for the new shortcut.
72 ShellIntegration::ShortcutInfo shortcut_info_; 72 ShellIntegration::ShortcutInfo shortcut_info_;
73 string16 shortcut_menu_subdir_; 73 // If false the shortcut will be created in the top-level menu.
74 bool create_in_chrome_apps_subdir_;
74 75
75 // Image associated with the site or app, scaled to the appropriate size to 76 // Image associated with the site or app, scaled to the appropriate size to
76 // display in the dialog box. 77 // display in the dialog box.
77 GdkPixbuf* favicon_pixbuf_; 78 GdkPixbuf* favicon_pixbuf_;
78 79
79 // Dialog box that allows the user to create an application shortcut. 80 // Dialog box that allows the user to create an application shortcut.
80 GtkWidget* create_dialog_; 81 GtkWidget* create_dialog_;
81 82
82 // Dialog box that shows the error message. 83 // Dialog box that shows the error message.
83 GtkWidget* error_dialog_; 84 GtkWidget* error_dialog_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void OnShortcutInfoLoaded( 133 void OnShortcutInfoLoaded(
133 const ShellIntegration::ShortcutInfo& shortcut_info); 134 const ShellIntegration::ShortcutInfo& shortcut_info);
134 135
135 private: 136 private:
136 const extensions::Extension* app_; 137 const extensions::Extension* app_;
137 base::FilePath profile_path_; 138 base::FilePath profile_path_;
138 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk); 139 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk);
139 }; 140 };
140 141
141 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ 142 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698