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

Side by Side Diff: ui/base/dragdrop/drag_utils_win.cc

Issue 9582041: Move most of ui/views/drag_utils to ui/base/dragdrop so it can be used outside of views. I tried to… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/dragdrop/drag_utils_gtk.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/views/drag_utils.h" 5 #include "ui/base/dragdrop/drag_utils.h"
6 6
7 #include <objidl.h> 7 #include <objidl.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 #include <shobjidl.h> 9 #include <shobjidl.h>
10 10
11 #include "base/win/scoped_comptr.h" 11 #include "base/win/scoped_comptr.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "ui/base/dragdrop/os_exchange_data.h" 13 #include "ui/base/dragdrop/os_exchange_data.h"
14 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 14 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
15 #include "ui/gfx/canvas_skia.h" 15 #include "ui/gfx/canvas_skia.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // SetDragImageOnDataObject(HBITMAP) takes ownership of the bitmap. 63 // SetDragImageOnDataObject(HBITMAP) takes ownership of the bitmap.
64 HBITMAP bitmap = CreateHBITMAPFromSkBitmap( 64 HBITMAP bitmap = CreateHBITMAPFromSkBitmap(
65 SkBitmapOperations::UnPreMultiply(sk_bitmap)); 65 SkBitmapOperations::UnPreMultiply(sk_bitmap));
66 66
67 // Attach 'bitmap' to the data_object. 67 // Attach 'bitmap' to the data_object.
68 SetDragImageOnDataObject(bitmap, size, cursor_offset, 68 SetDragImageOnDataObject(bitmap, size, cursor_offset,
69 ui::OSExchangeDataProviderWin::GetIDataObject(*data_object)); 69 ui::OSExchangeDataProviderWin::GetIDataObject(*data_object));
70 } 70 }
71 71
72 } // namespace drag_utils 72 } // namespace drag_utils
OLDNEW
« no previous file with comments | « ui/base/dragdrop/drag_utils_gtk.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698