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

Side by Side Diff: ui/views/controls/throbber.h

Issue 8687031: views: Move the remaining files to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.cc ('k') | ui/views/controls/throbber.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Throbbers display an animation, usually used as a status indicator. 5 #ifndef UI_VIEWS_CONTROLS_THROBBER_H_
6 6 #define UI_VIEWS_CONTROLS_THROBBER_H_
7 #ifndef VIEWS_CONTROLS_THROBBER_H_
8 #define VIEWS_CONTROLS_THROBBER_H_
9 #pragma once 7 #pragma once
10 8
11 #include "base/basictypes.h" 9 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
13 #include "base/time.h" 11 #include "base/time.h"
14 #include "base/timer.h" 12 #include "base/timer.h"
15 #include "views/view.h" 13 #include "views/view.h"
16 14
17 class SkBitmap; 15 class SkBitmap;
18 16
19 namespace views { 17 namespace views {
20 18
19 // Throbbers display an animation, usually used as a status indicator.
20
21 class VIEWS_EXPORT Throbber : public View { 21 class VIEWS_EXPORT Throbber : public View {
22 public: 22 public:
23 // |frame_time_ms| is the amount of time that should elapse between frames 23 // |frame_time_ms| is the amount of time that should elapse between frames
24 // (in milliseconds) 24 // (in milliseconds)
25 // If |paint_while_stopped| is false, this view will be invisible when not 25 // If |paint_while_stopped| is false, this view will be invisible when not
26 // running. 26 // running.
27 Throbber(int frame_time_ms, bool paint_while_stopped); 27 Throbber(int frame_time_ms, bool paint_while_stopped);
28 Throbber(int frame_time_ms, bool paint_while_stopped, SkBitmap* frames); 28 Throbber(int frame_time_ms, bool paint_while_stopped, SkBitmap* frames);
29 virtual ~Throbber(); 29 virtual ~Throbber();
30 30
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool checked_; 118 bool checked_;
119 119
120 // The checkmark image. 120 // The checkmark image.
121 static SkBitmap* checkmark_; 121 static SkBitmap* checkmark_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(CheckmarkThrobber); 123 DISALLOW_COPY_AND_ASSIGN(CheckmarkThrobber);
124 }; 124 };
125 125
126 } // namespace views 126 } // namespace views
127 127
128 #endif // VIEWS_CONTROLS_THROBBER_H_ 128 #endif // UI_VIEWS_CONTROLS_THROBBER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.cc ('k') | ui/views/controls/throbber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698