| OLD | NEW |
| 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 Loading... |
| 69 Profile* profile_; | 69 Profile* profile_; |
| 70 | 70 |
| 71 // UI elements on the dialog. | 71 // UI elements on the dialog. |
| 72 views::View* app_info_; | 72 views::View* app_info_; |
| 73 views::Label* create_shortcuts_label_; | 73 views::Label* create_shortcuts_label_; |
| 74 views::Checkbox* desktop_check_box_; | 74 views::Checkbox* desktop_check_box_; |
| 75 views::Checkbox* menu_check_box_; | 75 views::Checkbox* menu_check_box_; |
| 76 views::Checkbox* quick_launch_check_box_; | 76 views::Checkbox* quick_launch_check_box_; |
| 77 | 77 |
| 78 // Target shortcut info. | 78 // Target shortcut info. |
| 79 ShellIntegration::ShortcutInfo shortcut_info_; | 79 web_app::ShortcutInfo shortcut_info_; |
| 80 // If false, the shortcut will be created in the root level of the Start Menu. | 80 // If false, the shortcut will be created in the root level of the Start Menu. |
| 81 bool create_in_chrome_apps_subdir_; | 81 bool create_in_chrome_apps_subdir_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(CreateApplicationShortcutView); | 83 DISALLOW_COPY_AND_ASSIGN(CreateApplicationShortcutView); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // Create an application shortcut pointing to a URL. | 86 // Create an application shortcut pointing to a URL. |
| 87 class CreateUrlApplicationShortcutView : public CreateApplicationShortcutView { | 87 class CreateUrlApplicationShortcutView : public CreateApplicationShortcutView { |
| 88 public: | 88 public: |
| 89 explicit CreateUrlApplicationShortcutView(content::WebContents* web_contents); | 89 explicit CreateUrlApplicationShortcutView(content::WebContents* web_contents); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 CreateChromeApplicationShortcutView( | 126 CreateChromeApplicationShortcutView( |
| 127 Profile* profile, | 127 Profile* profile, |
| 128 const extensions::Extension* app, | 128 const extensions::Extension* app, |
| 129 const base::Closure& close_callback); | 129 const base::Closure& close_callback); |
| 130 virtual ~CreateChromeApplicationShortcutView(); | 130 virtual ~CreateChromeApplicationShortcutView(); |
| 131 virtual bool Accept() OVERRIDE; | 131 virtual bool Accept() OVERRIDE; |
| 132 virtual bool Cancel() OVERRIDE; | 132 virtual bool Cancel() OVERRIDE; |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 void OnShortcutInfoLoaded( | 135 void OnShortcutInfoLoaded( |
| 136 const ShellIntegration::ShortcutInfo& shortcut_info); | 136 const web_app::ShortcutInfo& shortcut_info); |
| 137 | 137 |
| 138 const extensions::Extension* app_; | 138 const extensions::Extension* app_; |
| 139 base::Closure close_callback_; | 139 base::Closure close_callback_; |
| 140 | 140 |
| 141 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; | 141 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); | 143 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ | 146 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ |
| OLD | NEW |