| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <objidl.h> | 10 #include <objidl.h> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "chrome/browser/download/download_exe.h" |
| 14 #include "chrome/browser/views/download_item_view.h" | 15 #include "chrome/browser/views/download_item_view.h" |
| 15 #include "chrome/views/event.h" | 16 #include "chrome/views/event.h" |
| 16 #include "chrome/views/menu.h" | 17 #include "chrome/views/menu.h" |
| 17 #include "chrome/views/view.h" | 18 #include "chrome/views/view.h" |
| 18 | 19 |
| 19 class DownloadItem; | 20 class DownloadItem; |
| 20 class SkBitmap; | 21 class SkBitmap; |
| 21 | 22 |
| 22 namespace download_util { | 23 namespace download_util { |
| 23 | 24 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 int origin_y, | 174 int origin_y, |
| 174 double animation_progress, | 175 double animation_progress, |
| 175 PaintDownloadProgressSize size); | 176 PaintDownloadProgressSize size); |
| 176 | 177 |
| 177 // Drag support ---------------------------------------------------------------- | 178 // Drag support ---------------------------------------------------------------- |
| 178 | 179 |
| 179 // Helper function for download views to use when acting as a drag source for a | 180 // Helper function for download views to use when acting as a drag source for a |
| 180 // DownloadItem. If 'icon' is NULL, no image will be accompany the drag. | 181 // DownloadItem. If 'icon' is NULL, no image will be accompany the drag. |
| 181 void DragDownload(const DownloadItem* download, SkBitmap* icon); | 182 void DragDownload(const DownloadItem* download, SkBitmap* icon); |
| 182 | 183 |
| 183 // Executable file support ----------------------------------------------------- | |
| 184 | |
| 185 // Copy all executable file extensions. | |
| 186 void InitializeExeTypes(std::set<std::wstring>* exe_extensions); | |
| 187 | |
| 188 } // namespace download_util | 184 } // namespace download_util |
| 189 | 185 |
| 190 | 186 |
| 191 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H__ | 187 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H__ |
| 192 | 188 |
| OLD | NEW |