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

Side by Side Diff: ui/app_list/pulsing_block_view.h

Issue 11784034: Skeleton for app_list on OSX, and refactoring for enable_app_list=1 on OS=="mac". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase for 175876 and 175961 Created 7 years, 11 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
« no previous file with comments | « ui/app_list/page_switcher.cc ('k') | ui/app_list/pulsing_block_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_APP_LIST_PULSING_BLOCK_VIEW_H_
6 #define UI_APP_LIST_PULSING_BLOCK_VIEW_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/timer.h"
11 #include "ui/views/view.h"
12
13 namespace gfx {
14 class Size;
15 }
16
17 namespace app_list {
18
19 // PulsingBlockView shows a pulsing white block via layer animation.
20 class PulsingBlockView : public views::View {
21 public:
22 // Constructs a PulsingBlockView of |size|. If |start_delay| is true,
23 // starts the pulsing animation after a random delay.
24 PulsingBlockView(const gfx::Size& size, bool start_delay);
25 virtual ~PulsingBlockView();
26
27 private:
28 void OnStartDelayTimer();
29
30 // views::View overrides:
31 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
32
33 base::OneShotTimer<PulsingBlockView> start_delay_timer_;
34
35 DISALLOW_COPY_AND_ASSIGN(PulsingBlockView);
36 };
37
38 } // namespace app_list
39
40 #endif // UI_APP_LIST_PULSING_BLOCK_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/page_switcher.cc ('k') | ui/app_list/pulsing_block_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698