Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: chrome/browser/download/download_util.h

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_extension_api.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698