diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 21:11:41 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 21:11:41 +0000 |
commit | 454dcb8ded0800384d70a126e61939e1178e922d (patch) | |
tree | feb19fd2bd2b0c2355ffaa22522f6392c4774c02 /chrome/browser/views/download_tab_view.h | |
parent | 6e2ef010f76be1ea7c5c45b17a375af68f8dd947 (diff) | |
download | chromium_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/views/download_tab_view.h')
-rw-r--r-- | chrome/browser/views/download_tab_view.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/views/download_tab_view.h b/chrome/browser/views/download_tab_view.h index 1ba7433..932f5c1 100644 --- a/chrome/browser/views/download_tab_view.h +++ b/chrome/browser/views/download_tab_view.h @@ -157,6 +157,9 @@ class DownloadTabView : public views::View, // The destination view's search box text has changed. void SetSearchText(const std::wstring& search_text); + inline int big_icon_size() const { return big_icon_size_; } + inline int big_icon_offset() const { return big_icon_offset_; } + private: // Creates and attaches to the view the floating view at |index|. views::View* CreateFloatingViewForIndex(int index); @@ -200,6 +203,10 @@ class DownloadTabView : public views::View, // being a dangerous download. base::hash_set<DownloadItem*> dangerous_downloads_; + // Cache the language specific large icon positional information. + int big_icon_size_; + int big_icon_offset_; + // Provide a start position for downloads with no known size. int start_angle_; |