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 COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 void SetClientArea( | 398 void SetClientArea( |
399 Id transport_window_id, | 399 Id transport_window_id, |
400 const gfx::Insets& insets, | 400 const gfx::Insets& insets, |
401 mojo::Array<gfx::Rect> transport_additional_client_areas) override; | 401 mojo::Array<gfx::Rect> transport_additional_client_areas) override; |
402 void SetHitTestMask(Id transport_window_id, const gfx::Rect& mask) override; | 402 void SetHitTestMask(Id transport_window_id, const gfx::Rect& mask) override; |
403 void GetWindowManagerClient( | 403 void GetWindowManagerClient( |
404 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) | 404 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) |
405 override; | 405 override; |
406 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) | 406 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) |
407 override; | 407 override; |
| 408 void PerformWindowMove(uint32_t change_id, |
| 409 Id window_id, |
| 410 ::mus::mojom::MoveLoopSource source, |
| 411 const gfx::Point& cursor) override; |
| 412 void CancelWindowMove(Id window_id) override; |
408 | 413 |
409 // mojom::WindowManagerClient: | 414 // mojom::WindowManagerClient: |
410 void AddAccelerator(uint32_t id, | 415 void AddAccelerator(uint32_t id, |
411 mojom::EventMatcherPtr event_matcher, | 416 mojom::EventMatcherPtr event_matcher, |
412 const AddAcceleratorCallback& callback) override; | 417 const AddAcceleratorCallback& callback) override; |
413 void RemoveAccelerator(uint32_t id) override; | 418 void RemoveAccelerator(uint32_t id) override; |
414 void AddActivationParent(Id transport_window_id) override; | 419 void AddActivationParent(Id transport_window_id) override; |
415 void RemoveActivationParent(Id transport_window_id) override; | 420 void RemoveActivationParent(Id transport_window_id) override; |
416 void ActivateNextWindow() override; | 421 void ActivateNextWindow() override; |
417 void SetUnderlaySurfaceOffsetAndExtendedHitArea( | 422 void SetUnderlaySurfaceOffsetAndExtendedHitArea( |
418 Id window_id, | 423 Id window_id, |
419 int32_t x_offset, | 424 int32_t x_offset, |
420 int32_t y_offset, | 425 int32_t y_offset, |
421 const gfx::Insets& hit_area) override; | 426 const gfx::Insets& hit_area) override; |
422 void WmResponse(uint32_t change_id, bool response) override; | 427 void WmResponse(uint32_t change_id, bool response) override; |
423 void WmRequestClose(Id transport_window_id) override; | 428 void WmRequestClose(Id transport_window_id) override; |
424 void WmSetFrameDecorationValues( | 429 void WmSetFrameDecorationValues( |
425 mojom::FrameDecorationValuesPtr values) override; | 430 mojom::FrameDecorationValuesPtr values) override; |
426 void WmSetNonClientCursor(uint32_t window_id, | 431 void WmSetNonClientCursor(uint32_t window_id, |
427 mojom::Cursor cursor_id) override; | 432 mojom::Cursor cursor_id) override; |
428 void OnWmCreatedTopLevelWindow(uint32_t change_id, | 433 void OnWmCreatedTopLevelWindow(uint32_t change_id, |
429 Id transport_window_id) override; | 434 Id transport_window_id) override; |
| 435 void OnWmMoveLoopCompleted(uint32_t change_id, bool succeeded) override; |
430 | 436 |
431 // AccessPolicyDelegate: | 437 // AccessPolicyDelegate: |
432 bool HasRootForAccessPolicy(const ServerWindow* window) const override; | 438 bool HasRootForAccessPolicy(const ServerWindow* window) const override; |
433 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override; | 439 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override; |
434 bool IsWindowRootOfAnotherTreeForAccessPolicy( | 440 bool IsWindowRootOfAnotherTreeForAccessPolicy( |
435 const ServerWindow* window) const override; | 441 const ServerWindow* window) const override; |
436 | 442 |
437 WindowServer* window_server_; | 443 WindowServer* window_server_; |
438 | 444 |
439 UserId user_id_; | 445 UserId user_id_; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 waiting_for_top_level_window_info_; | 494 waiting_for_top_level_window_info_; |
489 bool embedder_intercepts_events_ = false; | 495 bool embedder_intercepts_events_ = false; |
490 | 496 |
491 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 497 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
492 }; | 498 }; |
493 | 499 |
494 } // namespace ws | 500 } // namespace ws |
495 } // namespace mus | 501 } // namespace mus |
496 | 502 |
497 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ | 503 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ |
OLD | NEW |