| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 118                            int origin_x, | 118                            int origin_x, | 
| 119                            int origin_y, | 119                            int origin_y, | 
| 120                            double animation_progress, | 120                            double animation_progress, | 
| 121                            PaintDownloadProgressSize size); | 121                            PaintDownloadProgressSize size); | 
| 122 | 122 | 
| 123 // Drag support ---------------------------------------------------------------- | 123 // Drag support ---------------------------------------------------------------- | 
| 124 | 124 | 
| 125 // Helper function for download views to use when acting as a drag source for a | 125 // Helper function for download views to use when acting as a drag source for a | 
| 126 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view| | 126 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view| | 
| 127 // is only required for Mac OS X, elsewhere it can be NULL. | 127 // is only required for Mac OS X, elsewhere it can be NULL. | 
| 128 #if defined(TOOLKIT_VIEWS) || defined(OS_MACOSX) |  | 
| 129 void DragDownload(const DownloadItem* download, | 128 void DragDownload(const DownloadItem* download, | 
| 130                   SkBitmap* icon, | 129                   SkBitmap* icon, | 
| 131                   gfx::NativeView view); | 130                   gfx::NativeView view); | 
| 132 #endif |  | 
| 133 | 131 | 
| 134 // Executable file support ----------------------------------------------------- | 132 // Executable file support ----------------------------------------------------- | 
| 135 | 133 | 
| 136 // Copy all executable file extensions. | 134 // Copy all executable file extensions. | 
| 137 void InitializeExeTypes(std::set<std::string>* exe_extensions); | 135 void InitializeExeTypes(std::set<std::string>* exe_extensions); | 
| 138 | 136 | 
| 139 }  // namespace download_util | 137 }  // namespace download_util | 
| 140 | 138 | 
| 141 #endif  // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 139 #endif  // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 
| OLD | NEW | 
|---|