diff options
| author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-12 21:20:04 +0000 |
|---|---|---|
| committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-12 21:20:04 +0000 |
| commit | 5db2a6ed0d09ef82cf84ba2677ecfcdff6192c79 (patch) | |
| tree | ee5349952c352500e5ac8552653c89a21cd61747 /chrome/browser/download_util.h | |
| parent | f961489869259f538e6f9be39e2c52305d5e918f (diff) | |
| download | chromium_src-5db2a6ed0d09ef82cf84ba2677ecfcdff6192c79.zip chromium_src-5db2a6ed0d09ef82cf84ba2677ecfcdff6192c79.tar.gz chromium_src-5db2a6ed0d09ef82cf84ba2677ecfcdff6192c79.tar.bz2 | |
Removing static initializers.
BUG=None
TEST=Make sure download bar is still working fine.
Review URL: http://codereview.chromium.org/2431
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download_util.h')
| -rw-r--r-- | chrome/browser/download_util.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/chrome/browser/download_util.h b/chrome/browser/download_util.h index c5a45cd..6925b6e 100644 --- a/chrome/browser/download_util.h +++ b/chrome/browser/download_util.h @@ -132,20 +132,24 @@ const int kMaxDegrees = 360; // Progress animation timer period, in milliseconds. const int kProgressRateMs = 150; +// XP and Vista must support icons of this size. +const int kSmallIconSize = 16; +const int kBigIconSize = 32; + +// Our progress halo around the icon +const int kSmallProgressIconSize = 39; +const int kBigProgressIconSize = 52; + +// The offset required to center the icon in the progress bitmaps. +const int kSmallProgressIconOffset = + (kSmallProgressIconSize - kSmallIconSize) / 2; +const int kBigProgressIconOffset = (kBigProgressIconSize - kBigIconSize) / 2; + enum PaintDownloadProgressSize { SMALL = 0, BIG }; -// Returns the expected size of the icon displayed in the progress halo. -int GetIconSize(PaintDownloadProgressSize size); - -// Returns the size of our progress halo around the icon. -int GetProgressIconSize(PaintDownloadProgressSize size); - -// Returns the offset required to center the icon in the progress bitmaps. -int GetProgressIconOffset(PaintDownloadProgressSize size); - // Paint the common download animation progress foreground and background, // clipping the foreground to 'percent' full. If percent is -1, then we don't // know the total size, so we just draw a rotating segment until we're done. |
