| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Download utilities. | 5 // Download utilities. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // XP and Vista must support icons of this size. | 71 // XP and Vista must support icons of this size. |
| 72 const int kSmallIconSize = 16; | 72 const int kSmallIconSize = 16; |
| 73 const int kBigIconSize = 32; | 73 const int kBigIconSize = 32; |
| 74 | 74 |
| 75 // Our progress halo around the icon. | 75 // Our progress halo around the icon. |
| 76 int GetBigProgressIconSize(); | 76 int GetBigProgressIconSize(); |
| 77 | 77 |
| 78 const int kSmallProgressIconSize = 39; | 78 const int kSmallProgressIconSize = 39; |
| 79 const int kBigProgressIconSize = 52; | 79 const int kBigProgressIconSize = 52; |
| 80 | 80 |
| 81 // The offset required to center the icon in the progress bitmaps. | 81 // The offset required to center the icon in the progress images. |
| 82 int GetBigProgressIconOffset(); | 82 int GetBigProgressIconOffset(); |
| 83 | 83 |
| 84 const int kSmallProgressIconOffset = | 84 const int kSmallProgressIconOffset = |
| 85 (kSmallProgressIconSize - kSmallIconSize) / 2; | 85 (kSmallProgressIconSize - kSmallIconSize) / 2; |
| 86 | 86 |
| 87 enum PaintDownloadProgressSize { | 87 enum PaintDownloadProgressSize { |
| 88 SMALL = 0, | 88 SMALL = 0, |
| 89 BIG | 89 BIG |
| 90 }; | 90 }; |
| 91 | 91 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 // Increment one of the above counts. | 212 // Increment one of the above counts. |
| 213 void RecordDownloadCount(ChromeDownloadCountTypes type); | 213 void RecordDownloadCount(ChromeDownloadCountTypes type); |
| 214 | 214 |
| 215 // Record initiation of a download from a specific source. | 215 // Record initiation of a download from a specific source. |
| 216 void RecordDownloadSource(ChromeDownloadSource source); | 216 void RecordDownloadSource(ChromeDownloadSource source); |
| 217 | 217 |
| 218 } // namespace download_util | 218 } // namespace download_util |
| 219 | 219 |
| 220 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 220 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
| OLD | NEW |