| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 implementation for Mac OS X. | 5 // Download utility implementation for Mac OS X. |
| 6 | 6 |
| 7 #include "chrome/browser/ui/cocoa/download/download_util_mac.h" | 7 #include "chrome/browser/ui/cocoa/download/download_util_mac.h" |
| 8 | 8 |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "content/public/browser/download_item.h" | 10 #include "content/public/browser/download_item.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 location:position | 39 location:position |
| 40 modifierFlags:NSLeftMouseDraggedMask | 40 modifierFlags:NSLeftMouseDraggedMask |
| 41 timestamp:eventTime | 41 timestamp:eventTime |
| 42 windowNumber:[[view window] windowNumber] | 42 windowNumber:[[view window] windowNumber] |
| 43 context:nil | 43 context:nil |
| 44 eventNumber:0 | 44 eventNumber:0 |
| 45 clickCount:1 | 45 clickCount:1 |
| 46 pressure:1.0]; | 46 pressure:1.0]; |
| 47 | 47 |
| 48 // Run the drag operation. | 48 // Run the drag operation. |
| 49 [[view window] dragImage:*icon | 49 [[view window] dragImage:icon->ToNSImage() |
| 50 at:position | 50 at:position |
| 51 offset:NSZeroSize | 51 offset:NSZeroSize |
| 52 event:dragEvent | 52 event:dragEvent |
| 53 pasteboard:pasteboard | 53 pasteboard:pasteboard |
| 54 source:view | 54 source:view |
| 55 slideBack:YES]; | 55 slideBack:YES]; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace download_util | 58 } // namespace download_util |
| OLD | NEW |