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

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: rebase 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698