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_SUMMARY_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
| 11 |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.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 "extensions/common/constants.h" | 15 #include "extensions/common/constants.h" |
15 #include "ui/views/controls/combobox/combobox_listener.h" | 16 #include "ui/views/controls/combobox/combobox_listener.h" |
16 #include "ui/views/controls/link_listener.h" | 17 #include "ui/views/controls/link_listener.h" |
17 | 18 |
18 class LaunchOptionsComboboxModel; | 19 class LaunchOptionsComboboxModel; |
19 class Profile; | 20 class Profile; |
20 | 21 |
21 namespace extensions { | 22 namespace extensions { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // CanDisplayLicenses() returns true. | 76 // CanDisplayLicenses() returns true. |
76 void DisplayLicenses(); | 77 void DisplayLicenses(); |
77 bool CanDisplayLicenses() const; | 78 bool CanDisplayLicenses() const; |
78 const std::vector<GURL> GetLicenseUrls() const; | 79 const std::vector<GURL> GetLicenseUrls() const; |
79 | 80 |
80 // UI elements on the dialog. | 81 // UI elements on the dialog. |
81 views::Label* size_value_; | 82 views::Label* size_value_; |
82 views::Link* homepage_link_; | 83 views::Link* homepage_link_; |
83 views::Link* licenses_link_; | 84 views::Link* licenses_link_; |
84 | 85 |
85 scoped_ptr<LaunchOptionsComboboxModel> launch_options_combobox_model_; | 86 std::unique_ptr<LaunchOptionsComboboxModel> launch_options_combobox_model_; |
86 views::Combobox* launch_options_combobox_; | 87 views::Combobox* launch_options_combobox_; |
87 | 88 |
88 base::WeakPtrFactory<AppInfoSummaryPanel> weak_ptr_factory_; | 89 base::WeakPtrFactory<AppInfoSummaryPanel> weak_ptr_factory_; |
89 | 90 |
90 DISALLOW_COPY_AND_ASSIGN(AppInfoSummaryPanel); | 91 DISALLOW_COPY_AND_ASSIGN(AppInfoSummaryPanel); |
91 }; | 92 }; |
92 | 93 |
93 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H
_ | 94 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_PANEL_H
_ |
OLD | NEW |