Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / base / dragdrop / drag_utils_aura.cc
blob097978c1b64d3f13e547d1d2ae420e0da0f15fe8
1 // Copyright (c) 2012 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.
5 #include "ui/base/dragdrop/drag_utils.h"
7 #include "base/logging.h"
8 #include "ui/base/dragdrop/os_exchange_data.h"
9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/geometry/size.h"
11 #include "ui/gfx/geometry/vector2d.h"
12 #include "ui/gfx/image/image_skia.h"
14 namespace drag_utils {
16 void SetDragImageOnDataObject(const gfx::ImageSkia& image,
17 const gfx::Vector2d& cursor_offset,
18 ui::OSExchangeData* data_object) {
20 data_object->provider().SetDragImage(image, cursor_offset);
23 } // namespace drag_utils