OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int origin_y, | 115 int origin_y, |
116 double animation_progress, | 116 double animation_progress, |
117 PaintDownloadProgressSize size); | 117 PaintDownloadProgressSize size); |
118 | 118 |
119 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) | 119 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) |
120 // Drag support ---------------------------------------------------------------- | 120 // Drag support ---------------------------------------------------------------- |
121 | 121 |
122 // Helper function for download views to use when acting as a drag source for a | 122 // Helper function for download views to use when acting as a drag source for a |
123 // DownloadItem. If 'icon' is NULL, no image will be accompany the drag. | 123 // DownloadItem. If 'icon' is NULL, no image will be accompany the drag. |
124 void DragDownload(const DownloadItem* download, SkBitmap* icon); | 124 void DragDownload(const DownloadItem* download, SkBitmap* icon); |
| 125 #endif |
125 | 126 |
126 // Executable file support ----------------------------------------------------- | 127 // Executable file support ----------------------------------------------------- |
127 | 128 |
128 // Copy all executable file extensions. | 129 // Copy all executable file extensions. |
129 void InitializeExeTypes(std::set<std::string>* exe_extensions); | 130 void InitializeExeTypes(std::set<std::string>* exe_extensions); |
130 #endif | |
131 | 131 |
132 } // namespace download_util | 132 } // namespace download_util |
133 | 133 |
134 | |
135 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 134 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |
OLD | NEW |