| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |