1// Copyright (c) 2010 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#import <Cocoa/Cocoa.h> 6 7// A class representing the dock icon of the Chromium app. It's its own class 8// since several parts of the app want to manipulate the display of the dock 9// icon. 10@interface DockIcon : NSObject { 11} 12 13+ (DockIcon*)sharedDockIcon; 14 15// Updates the icon. Use the setters below to set the details first. 16- (void)updateIcon; 17 18// Download progress /////////////////////////////////////////////////////////// 19 20// Indicates how many downloads are in progress. 21- (void)setDownloads:(int)downloads; 22 23// Indicates whether the progress indicator should be in an indeterminate state 24// or not. 25- (void)setIndeterminate:(BOOL)indeterminate; 26 27// Indicates the amount of progress made of the download. Ranges from [0..1]. 28- (void)setProgress:(float)progress; 29 30@end 31