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

Side by Side Diff: views/drag_utils_aura.cc

Issue 8735009: views: Move some random files from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « views/drag_utils.cc ('k') | views/drag_utils_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "views/drag_utils.h"
6
7 #include "base/logging.h"
8 #include "third_party/skia/include/core/SkBitmap.h"
9 #include "ui/base/dragdrop/os_exchange_data.h"
10 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h"
11 #include "ui/gfx/canvas.h"
12 #include "ui/gfx/point.h"
13 #include "ui/gfx/size.h"
14
15 using ui::OSExchangeData;
16 using ui::OSExchangeDataProviderAura;
17
18 namespace drag_utils {
19
20 void SetDragImageOnDataObject(const SkBitmap& bitmap,
21 const gfx::Size& size,
22 const gfx::Point& cursor_offset,
23 OSExchangeData* data_object) {
24 OSExchangeDataProviderAura& provider(
25 static_cast<OSExchangeDataProviderAura&>(data_object->provider()));
26 provider.set_drag_image(bitmap);
27 }
28
29 } // namespace drag_utils
OLDNEW
« no previous file with comments | « views/drag_utils.cc ('k') | views/drag_utils_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698