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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 | 574 |
575 // A mapping to shared memory that is one 32 bit integer long. The window | 575 // A mapping to shared memory that is one 32 bit integer long. The window |
576 // server uses this to let us synchronously read the cursor location. | 576 // server uses this to let us synchronously read the cursor location. |
577 mojo::ScopedSharedBufferMapping cursor_location_mapping_; | 577 mojo::ScopedSharedBufferMapping cursor_location_mapping_; |
578 | 578 |
579 base::ObserverList<WindowTreeClientObserver> observers_; | 579 base::ObserverList<WindowTreeClientObserver> observers_; |
580 | 580 |
581 std::unique_ptr<mojo::AssociatedBinding<ui::mojom::WindowManager>> | 581 std::unique_ptr<mojo::AssociatedBinding<ui::mojom::WindowManager>> |
582 window_manager_internal_; | 582 window_manager_internal_; |
583 ui::mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; | 583 ui::mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; |
| 584 // Normally the same as |window_manager_internal_client_|, but tests may |
| 585 // set to something else. |
| 586 ui::mojom::WindowManagerClient* window_manager_client_ = nullptr; |
584 | 587 |
585 bool has_pointer_watcher_ = false; | 588 bool has_pointer_watcher_ = false; |
586 | 589 |
587 // The current change id for the client. | 590 // The current change id for the client. |
588 uint32_t current_move_loop_change_ = 0u; | 591 uint32_t current_move_loop_change_ = 0u; |
589 | 592 |
590 // Callback executed when a move loop initiated by PerformWindowMove() is | 593 // Callback executed when a move loop initiated by PerformWindowMove() is |
591 // completed. | 594 // completed. |
592 base::Callback<void(bool)> on_current_move_finished_; | 595 base::Callback<void(bool)> on_current_move_finished_; |
593 | 596 |
(...skipping 24 matching lines...) Expand all Loading... |
618 gfx::Insets normal_client_area_insets_; | 621 gfx::Insets normal_client_area_insets_; |
619 | 622 |
620 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 623 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
621 | 624 |
622 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 625 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
623 }; | 626 }; |
624 | 627 |
625 } // namespace aura | 628 } // namespace aura |
626 | 629 |
627 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 630 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |