| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 utility functions for Mac OS X. | 5 // Download utility functions for Mac OS X. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_UTIL_MAC_H_ | 7 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_UTIL_MAC_H_ |
| 8 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_UTIL_MAC_H_ | 8 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_UTIL_MAC_H_ |
| 9 | 9 |
| 10 #import <Cocoa/Cocoa.h> | 10 #import <Cocoa/Cocoa.h> |
| 11 | 11 |
| 12 class FilePath; | 12 class FilePath; |
| 13 | 13 |
| 14 namespace download_util { | 14 namespace download_util { |
| 15 | 15 |
| 16 void AddFileToPasteboard(NSPasteboard* pasteboard, const FilePath& path); | 16 void AddFileToPasteboard(NSPasteboard* pasteboard, const FilePath& path); |
| 17 | 17 |
| 18 // Notify the system that a download completed. This will cause the download | |
| 19 // folder in the dock to bounce. | |
| 20 void NotifySystemOfDownloadComplete(const FilePath& path); | |
| 21 | |
| 22 } // namespace download_util | 18 } // namespace download_util |
| 23 | 19 |
| 24 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_UTIL_MAC_H_ | 20 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_UTIL_MAC_H_ |
| OLD | NEW |