OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_LAUNCHER_APP_PLACEHOLDER_VIEW_H_ |
| 6 #define ASH_LAUNCHER_APP_PLACEHOLDER_VIEW_H_ |
| 7 |
| 8 #include "base/timer.h" |
| 9 #include "ui/views/view.h" |
| 10 |
| 11 namespace ash { |
| 12 namespace internal { |
| 13 |
| 14 // AppPlaceholderView displays a pulsing white square. Each instance of this |
| 15 // view starts the pulse animation with an incremental delay so that the |
| 16 // animations run at different phases. |
| 17 class AppPlaceholderView : public views::View { |
| 18 public: |
| 19 AppPlaceholderView(); |
| 20 virtual ~AppPlaceholderView(); |
| 21 |
| 22 private: |
| 23 void ScheduleAnimation(); |
| 24 |
| 25 // views::View overrides: |
| 26 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 27 virtual void ViewHierarchyChanged(bool is_add, |
| 28 View* parent, |
| 29 View* child) OVERRIDE; |
| 30 |
| 31 base::OneShotTimer<AppPlaceholderView> animation_delay_timer_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(AppPlaceholderView); |
| 34 }; |
| 35 |
| 36 } // namespace internal |
| 37 } // namesapce ash |
| 38 |
| 39 #endif // ASH_LAUNCHER_APP_PLACEHOLDER_VIEW_H_ |
OLD | NEW |