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

Side by Side Diff: ui/app_list/views/progress_bar_view.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_
6 #define UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/controls/progress_bar.h" 11 #include "ui/views/controls/progress_bar.h"
11 12
12 namespace views { 13 namespace views {
13 class Painter; 14 class Painter;
14 } 15 }
15 16
16 namespace app_list { 17 namespace app_list {
17 18
18 // ProgressBarView implements an image-based progress bar for app launcher. 19 // ProgressBarView implements an image-based progress bar for app launcher.
19 class ProgressBarView : public views::ProgressBar { 20 class ProgressBarView : public views::ProgressBar {
20 public: 21 public:
21 ProgressBarView(); 22 ProgressBarView();
22 ~ProgressBarView() override; 23 ~ProgressBarView() override;
23 24
24 // views::View overrides: 25 // views::View overrides:
25 gfx::Size GetPreferredSize() const override; 26 gfx::Size GetPreferredSize() const override;
26 void OnPaint(gfx::Canvas* canvas) override; 27 void OnPaint(gfx::Canvas* canvas) override;
27 28
28 private: 29 private:
29 scoped_ptr<views::Painter> background_painter_; 30 std::unique_ptr<views::Painter> background_painter_;
30 scoped_ptr<views::Painter> bar_painter_; 31 std::unique_ptr<views::Painter> bar_painter_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(ProgressBarView); 33 DISALLOW_COPY_AND_ASSIGN(ProgressBarView);
33 }; 34 };
34 35
35 } // namespace app_list 36 } // namespace app_list
36 37
37 #endif // UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_ 38 #endif // UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/folder_header_view_unittest.cc ('k') | ui/app_list/views/pulsing_block_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698