Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / ui / base / dragdrop / drag_utils_aura.cc
blob23c84fc74529fc249bb04c56b5f07732647c3463
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/image/image_skia.h"
11 #include "ui/gfx/size.h"
12 #include "ui/gfx/vector2d.h"
14 namespace drag_utils {
16 void SetDragImageOnDataObject(const gfx::ImageSkia& image,
17 const gfx::Size& size,
18 const gfx::Vector2d& cursor_offset,
19 ui::OSExchangeData* data_object) {
21 data_object->provider().SetDragImage(image, cursor_offset);
24 } // namespace drag_utils