Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: chrome/browser/ui/cocoa/download/download_util_mac.mm

Issue 10933083: Remove deprecated gfx::Image::operator NSImage*(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments and merge Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_started_animation_mac.mm ('k') | chrome/browser/ui/cocoa/history_menu_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698