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

Side by Side Diff: chrome/browser/ui/views/create_application_shortcut_view.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: rework Created 7 years, 3 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_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // UI elements on the dialog. 70 // UI elements on the dialog.
71 views::View* app_info_; 71 views::View* app_info_;
72 views::Label* create_shortcuts_label_; 72 views::Label* create_shortcuts_label_;
73 views::Checkbox* desktop_check_box_; 73 views::Checkbox* desktop_check_box_;
74 views::Checkbox* menu_check_box_; 74 views::Checkbox* menu_check_box_;
75 views::Checkbox* quick_launch_check_box_; 75 views::Checkbox* quick_launch_check_box_;
76 76
77 // Target shortcut info. 77 // Target shortcut info.
78 ShellIntegration::ShortcutInfo shortcut_info_; 78 ShellIntegration::ShortcutInfo shortcut_info_;
79 string16 shortcut_menu_subdir_; 79 // If false, the shortcut will be created in the root level of the Start Menu.
80 bool create_in_chrome_apps_subdir_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(CreateApplicationShortcutView); 82 DISALLOW_COPY_AND_ASSIGN(CreateApplicationShortcutView);
82 }; 83 };
83 84
84 // Create an application shortcut pointing to a URL. 85 // Create an application shortcut pointing to a URL.
85 class CreateUrlApplicationShortcutView : public CreateApplicationShortcutView { 86 class CreateUrlApplicationShortcutView : public CreateApplicationShortcutView {
86 public: 87 public:
87 explicit CreateUrlApplicationShortcutView(content::WebContents* web_contents); 88 explicit CreateUrlApplicationShortcutView(content::WebContents* web_contents);
88 virtual ~CreateUrlApplicationShortcutView(); 89 virtual ~CreateUrlApplicationShortcutView();
89 90
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 135
135 const extensions::Extension* app_; 136 const extensions::Extension* app_;
136 base::Closure close_callback_; 137 base::Closure close_callback_;
137 138
138 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; 139 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); 141 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView);
141 }; 142 };
142 143
143 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 144 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698