summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_util.h
diff options
context:
space:
mode:
authorpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 21:11:41 +0000
committerpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 21:11:41 +0000
commit454dcb8ded0800384d70a126e61939e1178e922d (patch)
treefeb19fd2bd2b0c2355ffaa22522f6392c4774c02 /chrome/browser/download/download_util.h
parent6e2ef010f76be1ea7c5c45b17a375af68f8dd947 (diff)
downloadchromium_src-454dcb8ded0800384d70a126e61939e1178e922d.zip
chromium_src-454dcb8ded0800384d70a126e61939e1178e922d.tar.gz
chromium_src-454dcb8ded0800384d70a126e61939e1178e922d.tar.bz2
Fix a bug where languages that have a long string for the
dangerous download warning cause an overlap with the label for that download's URL. We now use a locale-specific pixel value which changes the height of each download's view on the download page so that this overlap no longer happens. BUG=3824 (http://code.google.com/p/chromium/issues/detail?id=3824) Review URL: http://codereview.chromium.org/8933 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_util.h')
-rw-r--r--chrome/browser/download/download_util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h
index aa52946..08ba93a 100644
--- a/chrome/browser/download/download_util.h
+++ b/chrome/browser/download/download_util.h
@@ -136,14 +136,17 @@ const int kProgressRateMs = 150;
const int kSmallIconSize = 16;
const int kBigIconSize = 32;
-// Our progress halo around the icon
+// Our progress halo around the icon.
+int GetBigProgressIconSize();
+
const int kSmallProgressIconSize = 39;
const int kBigProgressIconSize = 52;
// The offset required to center the icon in the progress bitmaps.
+int GetBigProgressIconOffset();
+
const int kSmallProgressIconOffset =
(kSmallProgressIconSize - kSmallIconSize) / 2;
-const int kBigProgressIconOffset = (kBigProgressIconSize - kBigIconSize) / 2;
enum PaintDownloadProgressSize {
SMALL = 0,