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_DROP_CONTROLLER_H_ | 5 #ifndef ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ |
6 #define ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ | 6 #define ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace ash { | 26 namespace ash { |
27 class DragDropTracker; | 27 class DragDropTracker; |
28 class DragDropTrackerDelegate; | 28 class DragDropTrackerDelegate; |
29 class DragImageView; | 29 class DragImageView; |
30 | 30 |
31 namespace test { | 31 namespace test { |
32 class DragDropControllerTest; | 32 class DragDropControllerTest; |
33 } | 33 } |
34 | 34 |
35 class ASH_EXPORT DragDropController | 35 class ASH_EXPORT DragDropController : public aura::client::DragDropClient, |
36 : public aura::client::DragDropClient, | 36 public ui::EventHandler, |
37 public ui::EventHandler, | 37 public gfx::AnimationDelegate, |
38 public gfx::AnimationDelegate, | 38 public aura::WindowObserver { |
39 public aura::WindowObserver { | |
40 public: | 39 public: |
41 DragDropController(); | 40 DragDropController(); |
42 ~DragDropController() override; | 41 ~DragDropController() override; |
43 | 42 |
44 void set_should_block_during_drag_drop(bool should_block_during_drag_drop) { | 43 void set_should_block_during_drag_drop(bool should_block_during_drag_drop) { |
45 should_block_during_drag_drop_ = should_block_during_drag_drop; | 44 should_block_during_drag_drop_ = should_block_during_drag_drop; |
46 } | 45 } |
47 | 46 |
48 // Overridden from aura::client::DragDropClient: | 47 // Overridden from aura::client::DragDropClient: |
49 int StartDragAndDrop(const ui::OSExchangeData& data, | 48 int StartDragAndDrop(const ui::OSExchangeData& data, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 std::unique_ptr<ui::GestureEvent> pending_long_tap_; | 128 std::unique_ptr<ui::GestureEvent> pending_long_tap_; |
130 | 129 |
131 base::WeakPtrFactory<DragDropController> weak_factory_; | 130 base::WeakPtrFactory<DragDropController> weak_factory_; |
132 | 131 |
133 DISALLOW_COPY_AND_ASSIGN(DragDropController); | 132 DISALLOW_COPY_AND_ASSIGN(DragDropController); |
134 }; | 133 }; |
135 | 134 |
136 } // namespace ash | 135 } // namespace ash |
137 | 136 |
138 #endif // ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ | 137 #endif // ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ |
OLD | NEW |