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

Side by Side Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_panel.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698