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 CHROME_BROWSER_UI_COCOA_SPINNER_PROGRESS_INDICATOR_ | |
6 #define CHROME_BROWSER_UI_COCOA_SPINNER_PROGRESS_INDICATOR_ | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 | |
10 #include "base/memory/scoped_nsobject.h" | |
Nico
2012/10/02 03:47:25
not needed
sail
2012/10/10 02:00:10
Done.
| |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/time.h" | |
13 | |
14 namespace base { | |
15 class Timer; | |
16 } | |
17 | |
18 // A progress indicator that draws progress as a pie chart. An indeterminate | |
19 // state is represented by simply spinning a slice of the pie around the | |
20 // control. | |
21 @interface SpinnerProgressIndicator : NSView { | |
22 @private | |
23 scoped_ptr<base::Timer> timer_; | |
24 base::TimeTicks startTime_; | |
25 int percentDone_; | |
26 BOOL isIndeterminate_; | |
27 } | |
28 | |
29 @property(nonatomic, assign) int percentDone; | |
30 @property(nonatomic, assign) BOOL isIndeterminate; | |
31 | |
32 - (void)sizeToFit; | |
33 | |
34 @end | |
35 | |
36 #endif // CHROME_BROWSER_UI_COCOA_SPINNER_PROGRESS_INDICATOR_ | |
OLD | NEW |