| 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_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // is one of the ui::mojom::kDropEffect constants in | 236 // is one of the ui::mojom::kDropEffect constants in |
| 237 // window_tree_constants.mojom. | 237 // window_tree_constants.mojom. |
| 238 void PerformDragDrop( | 238 void PerformDragDrop( |
| 239 int drag_pointer, | 239 int drag_pointer, |
| 240 const std::map<std::string, std::vector<uint8_t>>& drag_data, | 240 const std::map<std::string, std::vector<uint8_t>>& drag_data, |
| 241 int drag_operation, | 241 int drag_operation, |
| 242 const gfx::Point& cursor_location, | 242 const gfx::Point& cursor_location, |
| 243 const SkBitmap& bitmap, | 243 const SkBitmap& bitmap, |
| 244 const base::Callback<void(bool, uint32_t)>& callback); | 244 const base::Callback<void(bool, uint32_t)>& callback); |
| 245 | 245 |
| 246 // Cancels the in progress drag started with PerformDragDrop(). |
| 247 void CancelDragDrop(); |
| 248 |
| 246 // Tells the window manager to take control of moving the window. Returns | 249 // Tells the window manager to take control of moving the window. Returns |
| 247 // true if the move wasn't canceled. | 250 // true if the move wasn't canceled. |
| 248 void PerformWindowMove(mojom::MoveLoopSource source, | 251 void PerformWindowMove(mojom::MoveLoopSource source, |
| 249 const gfx::Point& cursor_location, | 252 const gfx::Point& cursor_location, |
| 250 const base::Callback<void(bool)>& callback); | 253 const base::Callback<void(bool)>& callback); |
| 251 | 254 |
| 252 // Tells the window manager to abort any current move initiated by | 255 // Tells the window manager to abort any current move initiated by |
| 253 // PerformWindowMove(). | 256 // PerformWindowMove(). |
| 254 void CancelWindowMove(); | 257 void CancelWindowMove(); |
| 255 | 258 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 }; | 389 }; |
| 387 | 390 |
| 388 std::map<const void*, Value> prop_map_; | 391 std::map<const void*, Value> prop_map_; |
| 389 | 392 |
| 390 DISALLOW_COPY_AND_ASSIGN(Window); | 393 DISALLOW_COPY_AND_ASSIGN(Window); |
| 391 }; | 394 }; |
| 392 | 395 |
| 393 } // namespace ui | 396 } // namespace ui |
| 394 | 397 |
| 395 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 398 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| OLD | NEW |