| 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 "ash/drag_drop/drag_image_view.h" | 5 #include "ash/drag_drop/drag_image_view.h" |
| 6 | 6 |
| 7 #include "grit/ui_resources.h" | 7 #include "grit/ui_resources.h" |
| 8 #include "skia/ext/image_operations.h" | 8 #include "skia/ext/image_operations.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
| 11 #include "ui/compositor/dip_util.h" | 11 #include "ui/compositor/dip_util.h" |
| 12 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 13 #include "ui/gfx/size_conversions.h" | 13 #include "ui/gfx/size_conversions.h" |
| 14 #include "ui/views/corewm/shadow_types.h" | |
| 15 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 #include "ui/wm/core/shadow_types.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 using views::Widget; | 21 using views::Widget; |
| 22 | 22 |
| 23 Widget* CreateDragWidget(gfx::NativeView context) { | 23 Widget* CreateDragWidget(gfx::NativeView context) { |
| 24 Widget* drag_widget = new Widget; | 24 Widget* drag_widget = new Widget; |
| 25 Widget::InitParams params; | 25 Widget::InitParams params; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 drag_hint_bounds.AdjustToFit(gfx::Rect(widget_size_)); | 166 drag_hint_bounds.AdjustToFit(gfx::Rect(widget_size_)); |
| 167 | 167 |
| 168 // Draw image. | 168 // Draw image. |
| 169 canvas->DrawImageInt(*(drag_hint->ToImageSkia()), | 169 canvas->DrawImageInt(*(drag_hint->ToImageSkia()), |
| 170 drag_hint_bounds.x(), drag_hint_bounds.y()); | 170 drag_hint_bounds.x(), drag_hint_bounds.y()); |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace internal | 174 } // namespace internal |
| 175 } // namespace ash | 175 } // namespace ash |
| OLD | NEW |