| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/base/dragdrop/drag_utils.h" | 5 #include "ui/base/dragdrop/drag_utils.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "ui/base/dragdrop/os_exchange_data.h" | 10 #include "ui/base/dragdrop/os_exchange_data.h" |
| 11 #include "ui/gfx/canvas.h" | 11 #include "ui/gfx/canvas.h" |
| 12 #include "ui/gfx/font_list.h" | 12 #include "ui/gfx/font_list.h" |
| 13 #include "ui/gfx/geometry/point.h" | 13 #include "ui/gfx/geometry/point.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 16 #include "ui/gfx/image/canvas_image_source.h" | 16 #include "ui/gfx/image/canvas_image_source.h" |
| 17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 void SetDragImageOnDataObject(const gfx::Canvas& canvas, | 98 void SetDragImageOnDataObject(const gfx::Canvas& canvas, |
| 99 const gfx::Vector2d& cursor_offset, | 99 const gfx::Vector2d& cursor_offset, |
| 100 ui::OSExchangeData* data_object) { | 100 ui::OSExchangeData* data_object) { |
| 101 gfx::ImageSkia image = gfx::ImageSkia(canvas.ExtractImageRep()); | 101 gfx::ImageSkia image = gfx::ImageSkia(canvas.ExtractImageRep()); |
| 102 SetDragImageOnDataObject(image, cursor_offset, data_object); | 102 SetDragImageOnDataObject(image, cursor_offset, data_object); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace drag_utils | 105 } // namespace drag_utils |
| OLD | NEW |