| 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 UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 ClientSpecificId requesting_client_id, | 390 ClientSpecificId requesting_client_id, |
| 391 const std::unordered_map<std::string, std::vector<uint8_t>>& | 391 const std::unordered_map<std::string, std::vector<uint8_t>>& |
| 392 transport_properties) override; | 392 transport_properties) override; |
| 393 void WmClientJankinessChanged(ClientSpecificId client_id, | 393 void WmClientJankinessChanged(ClientSpecificId client_id, |
| 394 bool janky) override; | 394 bool janky) override; |
| 395 void WmPerformMoveLoop(uint32_t change_id, | 395 void WmPerformMoveLoop(uint32_t change_id, |
| 396 Id window_id, | 396 Id window_id, |
| 397 ui::mojom::MoveLoopSource source, | 397 ui::mojom::MoveLoopSource source, |
| 398 const gfx::Point& cursor_location) override; | 398 const gfx::Point& cursor_location) override; |
| 399 void WmCancelMoveLoop(uint32_t window_id) override; | 399 void WmCancelMoveLoop(uint32_t window_id) override; |
| 400 void WmDeactivateWindow(Id window_id) override; |
| 400 void OnAccelerator(uint32_t ack_id, | 401 void OnAccelerator(uint32_t ack_id, |
| 401 uint32_t accelerator_id, | 402 uint32_t accelerator_id, |
| 402 std::unique_ptr<ui::Event> event) override; | 403 std::unique_ptr<ui::Event> event) override; |
| 403 | 404 |
| 404 // Overridden from WindowManagerClient: | 405 // Overridden from WindowManagerClient: |
| 405 void SetFrameDecorationValues( | 406 void SetFrameDecorationValues( |
| 406 ui::mojom::FrameDecorationValuesPtr values) override; | 407 ui::mojom::FrameDecorationValuesPtr values) override; |
| 407 void SetNonClientCursor(Window* window, ui::mojom::Cursor cursor_id) override; | 408 void SetNonClientCursor(Window* window, ui::mojom::Cursor cursor_id) override; |
| 408 void AddAccelerators(std::vector<ui::mojom::AcceleratorPtr> accelerators, | 409 void AddAccelerators(std::vector<ui::mojom::AcceleratorPtr> accelerators, |
| 409 const base::Callback<void(bool)>& callback) override; | 410 const base::Callback<void(bool)>& callback) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 420 // Overriden from WindowTreeHostMusDelegate: | 421 // Overriden from WindowTreeHostMusDelegate: |
| 421 void OnWindowTreeHostBoundsWillChange(WindowTreeHostMus* window_tree_host, | 422 void OnWindowTreeHostBoundsWillChange(WindowTreeHostMus* window_tree_host, |
| 422 const gfx::Rect& bounds) override; | 423 const gfx::Rect& bounds) override; |
| 423 void OnWindowTreeHostClientAreaWillChange( | 424 void OnWindowTreeHostClientAreaWillChange( |
| 424 WindowTreeHostMus* window_tree_host, | 425 WindowTreeHostMus* window_tree_host, |
| 425 const gfx::Insets& client_area, | 426 const gfx::Insets& client_area, |
| 426 const std::vector<gfx::Rect>& additional_client_areas) override; | 427 const std::vector<gfx::Rect>& additional_client_areas) override; |
| 427 void OnWindowTreeHostHitTestMaskWillChange( | 428 void OnWindowTreeHostHitTestMaskWillChange( |
| 428 WindowTreeHostMus* window_tree_host, | 429 WindowTreeHostMus* window_tree_host, |
| 429 const base::Optional<gfx::Rect>& mask_rect) override; | 430 const base::Optional<gfx::Rect>& mask_rect) override; |
| 431 void OnWindowTreeHostDeactivateWindow( |
| 432 WindowTreeHostMus* window_tree_host) override; |
| 430 std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( | 433 std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( |
| 431 const std::map<std::string, std::vector<uint8_t>>* properties) override; | 434 const std::map<std::string, std::vector<uint8_t>>* properties) override; |
| 432 void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) override; | 435 void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) override; |
| 433 | 436 |
| 434 // Override from client::TransientWindowClientObserver: | 437 // Override from client::TransientWindowClientObserver: |
| 435 void OnTransientChildWindowAdded(Window* parent, | 438 void OnTransientChildWindowAdded(Window* parent, |
| 436 Window* transient_child) override; | 439 Window* transient_child) override; |
| 437 void OnTransientChildWindowRemoved(Window* parent, | 440 void OnTransientChildWindowRemoved(Window* parent, |
| 438 Window* transient_child) override; | 441 Window* transient_child) override; |
| 439 void OnWillRestackTransientChildAbove(Window* parent, | 442 void OnWillRestackTransientChildAbove(Window* parent, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; | 524 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; |
| 522 | 525 |
| 523 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 526 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 524 | 527 |
| 525 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 528 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 526 }; | 529 }; |
| 527 | 530 |
| 528 } // namespace aura | 531 } // namespace aura |
| 529 | 532 |
| 530 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 533 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |