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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/spinner_progress_indicator.h
diff --git a/chrome/browser/ui/cocoa/spinner_progress_indicator.h b/chrome/browser/ui/cocoa/spinner_progress_indicator.h
new file mode 100644
index 0000000000000000000000000000000000000000..373c12b482afd2993ebc9843a388495ede2a37fd
--- /dev/null
+++ b/chrome/browser/ui/cocoa/spinner_progress_indicator.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_SPINNER_PROGRESS_INDICATOR_
+#define CHROME_BROWSER_UI_COCOA_SPINNER_PROGRESS_INDICATOR_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_ptr.h"
+#include "base/time.h"
+
+namespace base {
+class Timer;
+}
+
+// A progress indicator that draws progress as a pie chart. An terminate
+// state is represented by simply spinning a slice of the pie around the
+// control.
+@interface SpinnerProgressIndicator : NSView {
+ @private
+ scoped_ptr<base::Timer> timer_;
+ base::TimeTicks startTime_;
+ int percentDone_;
+ BOOL isIndeterminate_;
+}
+
+@property(nonatomic, assign) int percentDone;
+@property(nonatomic, assign) BOOL isIndeterminate;
+
+- (void)sizeToFit;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_SPINNER_PROGRESS_INDICATOR_

Powered by Google App Engine
This is Rietveld 408576698