OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 13 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
13 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" | 14 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 #include "ui/views/controls/button/button.h" | 16 #include "ui/views/controls/button/button.h" |
16 | 17 |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 namespace extensions { | 20 namespace extensions { |
20 class Extension; | 21 class Extension; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 bool CanUninstallApp() const; | 76 bool CanUninstallApp() const; |
76 | 77 |
77 gfx::NativeWindow parent_window_; | 78 gfx::NativeWindow parent_window_; |
78 | 79 |
79 // UI elements on the dialog. Elements are NULL if they are not displayed. | 80 // UI elements on the dialog. Elements are NULL if they are not displayed. |
80 views::LabelButton* create_shortcuts_button_; | 81 views::LabelButton* create_shortcuts_button_; |
81 views::LabelButton* pin_to_shelf_button_; | 82 views::LabelButton* pin_to_shelf_button_; |
82 views::LabelButton* unpin_from_shelf_button_; | 83 views::LabelButton* unpin_from_shelf_button_; |
83 views::LabelButton* remove_button_; | 84 views::LabelButton* remove_button_; |
84 | 85 |
85 scoped_ptr<extensions::ExtensionUninstallDialog> extension_uninstall_dialog_; | 86 std::unique_ptr<extensions::ExtensionUninstallDialog> |
| 87 extension_uninstall_dialog_; |
86 | 88 |
87 base::WeakPtrFactory<AppInfoFooterPanel> weak_ptr_factory_; | 89 base::WeakPtrFactory<AppInfoFooterPanel> weak_ptr_factory_; |
88 | 90 |
89 DISALLOW_COPY_AND_ASSIGN(AppInfoFooterPanel); | 91 DISALLOW_COPY_AND_ASSIGN(AppInfoFooterPanel); |
90 }; | 92 }; |
91 | 93 |
92 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ | 94 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ |
OLD | NEW |