1c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Use of this source code is governed by a BSD-style license that can be
3c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// found in the LICENSE file.
4c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
5c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#import <Cocoa/Cocoa.h>
6c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
7c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// A class representing the dock icon of the Chromium app. It's its own class
8c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// since several parts of the app want to manipulate the display of the dock
9c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// icon.
10c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch@interface DockIcon : NSObject {
11c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch}
12c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
13c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch+ (DockIcon*)sharedDockIcon;
14c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
15c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Updates the icon. Use the setters below to set the details first.
16c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch- (void)updateIcon;
17c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
18c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Download progress ///////////////////////////////////////////////////////////
19c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
20c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Indicates how many downloads are in progress.
21c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch- (void)setDownloads:(int)downloads;
22c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
23c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Indicates whether the progress indicator should be in an indeterminate state
24c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// or not.
25c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch- (void)setIndeterminate:(BOOL)indeterminate;
26c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
27c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Indicates the amount of progress made of the download. Ranges from [0..1].
28c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch- (void)setProgress:(float)progress;
29c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
30c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch@end
31