Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: services/ui/ws/drag_controller.h

Issue 2455963006: Wires up drag/drop for aura-mus (Closed)
Patch Set: twweaks Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/drag_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_WS_DRAG_CONTROLLER_H_ 5 #ifndef SERVICES_UI_WS_DRAG_CONTROLLER_H_
6 #define SERVICES_UI_WS_DRAG_CONTROLLER_H_ 6 #define SERVICES_UI_WS_DRAG_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // that the drag source allows. 86 // that the drag source allows.
87 ui::mojom::Cursor CursorForEffectBitmask(DropEffectBitmask bitmask); 87 ui::mojom::Cursor CursorForEffectBitmask(DropEffectBitmask bitmask);
88 88
89 // Ensure that |window| has an entry in |window_state_| and that we're an 89 // Ensure that |window| has an entry in |window_state_| and that we're an
90 // observer. 90 // observer.
91 void EnsureWindowObserved(ServerWindow* window); 91 void EnsureWindowObserved(ServerWindow* window);
92 92
93 void QueueOperation(ServerWindow* window, 93 void QueueOperation(ServerWindow* window,
94 OperationType type, 94 OperationType type,
95 uint32_t event_flags, 95 uint32_t event_flags,
96 gfx::Point screen_position); 96 const gfx::Point& screen_position);
97 void DispatchOperation(ServerWindow* window, WindowState* state); 97 void DispatchOperation(ServerWindow* window, WindowState* state);
98 void OnRespondToOperation(ServerWindow* window); 98 void OnRespondToOperation(ServerWindow* window);
99 99
100 // Callback methods. 100 // Callback methods.
101 void OnDragStatusCompleted(const WindowId& id, DropEffectBitmask bitmask); 101 void OnDragStatusCompleted(const WindowId& id, DropEffectBitmask bitmask);
102 void OnDragDropCompleted(const WindowId& id, DropEffect action); 102 void OnDragDropCompleted(const WindowId& id, DropEffect action);
103 103
104 // ServerWindowObserver: 104 // ServerWindowObserver:
105 void OnWindowDestroying(ServerWindow* window) override; 105 void OnWindowDestroying(ServerWindow* window) override;
106 106
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 base::WeakPtrFactory<DragController> weak_factory_; 145 base::WeakPtrFactory<DragController> weak_factory_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(DragController); 147 DISALLOW_COPY_AND_ASSIGN(DragController);
148 }; 148 };
149 149
150 } // namespace ws 150 } // namespace ws
151 } // namespace ui 151 } // namespace ui
152 152
153 #endif // SERVICES_UI_WS_DRAG_CONTROLLER_H_ 153 #endif // SERVICES_UI_WS_DRAG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698