| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |