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

Side by Side Diff: ui/message_center/views/notification_progress_bar.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MESSAGE_CENTER_VIEWS_NOTIFICATION_PROGRESS_BAR_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_PROGRESS_BAR_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_PROGRESS_BAR_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_PROGRESS_BAR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/animation/animation_delegate.h" 9 #include "ui/gfx/animation/animation_delegate.h"
10 #include "ui/gfx/animation/linear_animation.h" 10 #include "ui/gfx/animation/linear_animation.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool is_indeterminate() override; 47 bool is_indeterminate() override;
48 48
49 private: 49 private:
50 // Overriden from views::ProgressBar (originally from views::View) 50 // Overriden from views::ProgressBar (originally from views::View)
51 void OnPaint(gfx::Canvas* canvas) override; 51 void OnPaint(gfx::Canvas* canvas) override;
52 52
53 // Overriden from gfx::AnimationDelegate 53 // Overriden from gfx::AnimationDelegate
54 void AnimationProgressed(const gfx::Animation* animation) override; 54 void AnimationProgressed(const gfx::Animation* animation) override;
55 void AnimationEnded(const gfx::Animation* animation) override; 55 void AnimationEnded(const gfx::Animation* animation) override;
56 56
57 scoped_ptr<gfx::LinearAnimation> indeterminate_bar_animation_; 57 std::unique_ptr<gfx::LinearAnimation> indeterminate_bar_animation_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(NotificationIndeterminateProgressBar); 59 DISALLOW_COPY_AND_ASSIGN(NotificationIndeterminateProgressBar);
60 }; 60 };
61 61
62 } // namespace message_center 62 } // namespace message_center
63 63
64 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_PROGRESS_BAR_H_ 64 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_PROGRESS_BAR_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/notification_button.h ('k') | ui/message_center/views/notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698