diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 16:30:47 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 16:30:47 +0000 |
commit | 6a7fb04b7475b355cb571c9aca6b192d2a96ca5f (patch) | |
tree | 189b6f31c49e34874d3308cbffb9beb6becd8b26 /chrome/browser/cocoa/dock_icon.h | |
parent | c702d70890ab023ce723dde7aea8c66adb7ef98e (diff) | |
download | chromium_src-6a7fb04b7475b355cb571c9aca6b192d2a96ca5f.zip chromium_src-6a7fb04b7475b355cb571c9aca6b192d2a96ca5f.tar.gz chromium_src-6a7fb04b7475b355cb571c9aca6b192d2a96ca5f.tar.bz2 |
Add temporary download progress overlay to the dock icon for the Mac (real UI coming soon), and provide the hooks for the Win7 implementation.
BUG=http://crbug.com/8039
TEST=download; see progress in the dock icon
Review URL: http://codereview.chromium.org/545157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/dock_icon.h')
-rw-r--r-- | chrome/browser/cocoa/dock_icon.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/dock_icon.h b/chrome/browser/cocoa/dock_icon.h new file mode 100644 index 0000000..4a96537 --- /dev/null +++ b/chrome/browser/cocoa/dock_icon.h @@ -0,0 +1,30 @@ +// Copyright (c) 2010 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. + +#import <Cocoa/Cocoa.h> + +// A class representing the dock icon of the Chromium app. It's its own class +// since several parts of the app want to manipulate the display of the dock +// icon. +@interface DockIcon : NSObject { +} + ++ (DockIcon*)sharedDockIcon; + +// Updates the icon. Use the setters below to set the details first. +- (void)updateIcon; + +// Download progress /////////////////////////////////////////////////////////// + +// Indicates how many downloads are in progress. +- (void)setDownloads:(int)downloads; + +// Indicates whether the progress indicator should be in an indeterminate state +// or not. +- (void)setIndeterminate:(BOOL)indeterminate; + +// Indicates the amount of progress made of the download. Ranges from [0..1]. +- (void)setProgress:(float)progress; + +@end |