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 #ifndef ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ | 5 #ifndef ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ |
6 #define ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ | 6 #define ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ |
7 | 7 |
oshima
2016/04/08 07:09:40
include?
| |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/base/dragdrop/drag_drop_types.h" | 9 #include "ui/base/dragdrop/drag_drop_types.h" |
10 #include "ui/views/controls/image_view.h" | 10 #include "ui/views/controls/image_view.h" |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 class Image; | 13 class Image; |
14 } | 14 } |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 class Widget; | 17 class Widget; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 | 64 |
65 private: | 65 private: |
66 gfx::Image* DragHint() const; | 66 gfx::Image* DragHint() const; |
67 | 67 |
68 // Overridden from views::ImageView. | 68 // Overridden from views::ImageView. |
69 void OnPaint(gfx::Canvas* canvas) override; | 69 void OnPaint(gfx::Canvas* canvas) override; |
70 | 70 |
71 // Overridden from views::view | 71 // Overridden from views::view |
72 void Layout() override; | 72 void Layout() override; |
73 | 73 |
74 scoped_ptr<views::Widget> widget_; | 74 std::unique_ptr<views::Widget> widget_; |
75 gfx::Size widget_size_; | 75 gfx::Size widget_size_; |
76 | 76 |
77 ui::DragDropTypes::DragEventSource drag_event_source_; | 77 ui::DragDropTypes::DragEventSource drag_event_source_; |
78 int touch_drag_operation_; | 78 int touch_drag_operation_; |
79 gfx::Point touch_drag_operation_indicator_position_; | 79 gfx::Point touch_drag_operation_indicator_position_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(DragImageView); | 81 DISALLOW_COPY_AND_ASSIGN(DragImageView); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace ash | 84 } // namespace ash |
85 | 85 |
86 #endif // ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ | 86 #endif // ASH_DRAG_DROP_DRAG_IMAGE_VIEW_H_ |
OLD | NEW |