| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "chrome/browser/cocoa/download_item_button.h" |
| 6 |
| 7 #include "base/sys_string_conversions.h" |
| 8 |
| 9 @implementation DownloadItemButton |
| 10 |
| 11 @synthesize download = downloadPath_; |
| 12 |
| 13 // Overridden from DraggableButton. |
| 14 - (void)beginDrag:(NSEvent*)event { |
| 15 if (!downloadPath_.empty()) { |
| 16 NSString* filename = base::SysUTF8ToNSString(downloadPath_.value()); |
| 17 [self dragFile:filename fromRect:[self bounds] slideBack:YES event:event]; |
| 18 } |
| 19 } |
| 20 |
| 21 @end |
| OLD | NEW |