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

Side by Side Diff: services/ui/public/cpp/window_tree_client.h

Issue 2352233002: mus drag and drop: Add API to let the client cancel the drag. (Closed)
Patch Set: A bunch of dvlogs Created 4 years, 3 months 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/cpp/window.cc ('k') | services/ui/public/cpp/window_tree_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 void PerformDragDrop( 179 void PerformDragDrop(
180 Window* window, 180 Window* window,
181 int drag_pointer, 181 int drag_pointer,
182 const std::map<std::string, std::vector<uint8_t>>& drag_data, 182 const std::map<std::string, std::vector<uint8_t>>& drag_data,
183 int drag_operation, 183 int drag_operation,
184 const gfx::Point& cursor_location, 184 const gfx::Point& cursor_location,
185 const SkBitmap& bitmap, 185 const SkBitmap& bitmap,
186 const base::Callback<void(bool, uint32_t)>& callback); 186 const base::Callback<void(bool, uint32_t)>& callback);
187 187
188 // Cancels a in progress drag drop. (If no drag is in progress, does
189 // nothing.)
190 void CancelDragDrop(Window* window);
191
188 // Performs a window move. |callback| will be asynchronously called with the 192 // Performs a window move. |callback| will be asynchronously called with the
189 // whether the move loop completed successfully. 193 // whether the move loop completed successfully.
190 void PerformWindowMove(Window* window, 194 void PerformWindowMove(Window* window,
191 ui::mojom::MoveLoopSource source, 195 ui::mojom::MoveLoopSource source,
192 const gfx::Point& cursor_location, 196 const gfx::Point& cursor_location,
193 const base::Callback<void(bool)>& callback); 197 const base::Callback<void(bool)>& callback);
194 198
195 // Cancels a in progress window move. (If no window is currently being moved, 199 // Cancels a in progress window move. (If no window is currently being moved,
196 // does nothing.) 200 // does nothing.)
197 void CancelWindowMove(Window* window); 201 void CancelWindowMove(Window* window);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 std::set<Id> drag_entered_windows_; 474 std::set<Id> drag_entered_windows_;
471 475
472 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 476 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
473 477
474 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 478 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
475 }; 479 };
476 480
477 } // namespace ui 481 } // namespace ui
478 482
479 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 483 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window.cc ('k') | services/ui/public/cpp/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698