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

Side by Side Diff: ash/launcher/app_placeholder_view.h

Issue 10829268: chromeos: Sync animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for sky's comments in #3 Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698