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