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

Side by Side Diff: chrome/browser/ui/cocoa/spinner_progress_indicator.h

Issue 11009017: Mac Web Intents Part 11: Progress view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 8 years, 2 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698