| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "views/drag_utils.h" | 5 #include "views/drag_utils.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | |
| 8 #include "app/os_exchange_data.h" | 7 #include "app/os_exchange_data.h" |
| 9 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 10 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 13 #include "gfx/canvas_skia.h" | 12 #include "gfx/canvas_skia.h" |
| 14 #include "gfx/font.h" | 13 #include "gfx/font.h" |
| 15 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 16 #include "grit/app_resources.h" | 15 #include "grit/app_resources.h" |
| 17 #include "views/controls/button/text_button.h" | 16 #include "views/controls/button/text_button.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 93 |
| 95 void SetDragImageOnDataObject(const gfx::Canvas& canvas, | 94 void SetDragImageOnDataObject(const gfx::Canvas& canvas, |
| 96 const gfx::Size& size, | 95 const gfx::Size& size, |
| 97 const gfx::Point& cursor_offset, | 96 const gfx::Point& cursor_offset, |
| 98 OSExchangeData* data_object) { | 97 OSExchangeData* data_object) { |
| 99 SetDragImageOnDataObject( | 98 SetDragImageOnDataObject( |
| 100 canvas.AsCanvasSkia()->ExtractBitmap(), size, cursor_offset, data_object); | 99 canvas.AsCanvasSkia()->ExtractBitmap(), size, cursor_offset, data_object); |
| 101 } | 100 } |
| 102 | 101 |
| 103 } // namespace drag_utils | 102 } // namespace drag_utils |
| OLD | NEW |