| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PULSING_BLOCK_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_PULSING_BLOCK_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_PULSING_BLOCK_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_PULSING_BLOCK_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 // Constructs a PulsingBlockView of |size|. If |start_delay| is true, | 22 // Constructs a PulsingBlockView of |size|. If |start_delay| is true, |
| 23 // starts the pulsing animation after a random delay. | 23 // starts the pulsing animation after a random delay. |
| 24 PulsingBlockView(const gfx::Size& size, bool start_delay); | 24 PulsingBlockView(const gfx::Size& size, bool start_delay); |
| 25 virtual ~PulsingBlockView(); | 25 virtual ~PulsingBlockView(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 void OnStartDelayTimer(); | 28 void OnStartDelayTimer(); |
| 29 | 29 |
| 30 // views::View overrides: | 30 // views::View overrides: |
| 31 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 31 virtual void OnPaint(gfx::Canvas* canvas) override; |
| 32 | 32 |
| 33 base::OneShotTimer<PulsingBlockView> start_delay_timer_; | 33 base::OneShotTimer<PulsingBlockView> start_delay_timer_; |
| 34 | 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(PulsingBlockView); | 35 DISALLOW_COPY_AND_ASSIGN(PulsingBlockView); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace app_list | 38 } // namespace app_list |
| 39 | 39 |
| 40 #endif // UI_APP_LIST_VIEWS_PULSING_BLOCK_VIEW_H_ | 40 #endif // UI_APP_LIST_VIEWS_PULSING_BLOCK_VIEW_H_ |
| OLD | NEW |