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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 std::unique_ptr<gfx::LinearAnimation> cancel_animation_; | 120 std::unique_ptr<gfx::LinearAnimation> cancel_animation_; |
121 | 121 |
122 // Window that started the drag. | 122 // Window that started the drag. |
123 aura::Window* drag_source_window_; | 123 aura::Window* drag_source_window_; |
124 | 124 |
125 // Indicates whether the caller should be blocked on a drag/drop session. | 125 // Indicates whether the caller should be blocked on a drag/drop session. |
126 // Only be used for tests. | 126 // Only be used for tests. |
127 bool should_block_during_drag_drop_; | 127 bool should_block_during_drag_drop_; |
128 | 128 |
129 // Closure for quitting nested message loop. | 129 // Closure for quitting nested run loop. |
130 base::Closure quit_closure_; | 130 base::Closure quit_closure_; |
131 | 131 |
132 std::unique_ptr<ash::DragDropTracker> drag_drop_tracker_; | 132 std::unique_ptr<ash::DragDropTracker> drag_drop_tracker_; |
133 std::unique_ptr<DragDropTrackerDelegate> drag_drop_window_delegate_; | 133 std::unique_ptr<DragDropTrackerDelegate> drag_drop_window_delegate_; |
134 | 134 |
135 ui::DragDropTypes::DragEventSource current_drag_event_source_; | 135 ui::DragDropTypes::DragEventSource current_drag_event_source_; |
136 | 136 |
137 // Holds a synthetic long tap event to be sent to the |drag_source_window_|. | 137 // Holds a synthetic long tap event to be sent to the |drag_source_window_|. |
138 // See comment in OnGestureEvent() on why we need this. | 138 // See comment in OnGestureEvent() on why we need this. |
139 std::unique_ptr<ui::GestureEvent> pending_long_tap_; | 139 std::unique_ptr<ui::GestureEvent> pending_long_tap_; |
140 | 140 |
141 base::WeakPtrFactory<DragDropController> weak_factory_; | 141 base::WeakPtrFactory<DragDropController> weak_factory_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(DragDropController); | 143 DISALLOW_COPY_AND_ASSIGN(DragDropController); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace ash | 146 } // namespace ash |
147 | 147 |
148 #endif // ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ | 148 #endif // ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ |
OLD | NEW |