OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WS_TEST_UTILS_H_ | 5 #ifndef SERVICES_UI_WS_TEST_UTILS_H_ |
6 #define SERVICES_UI_WS_TEST_UTILS_H_ | 6 #define SERVICES_UI_WS_TEST_UTILS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 630 |
631 private: | 631 private: |
632 WindowServerTestHelper ws_test_helper_; | 632 WindowServerTestHelper ws_test_helper_; |
633 // TestWindowTreeClient that is used for the WM client. Owned by | 633 // TestWindowTreeClient that is used for the WM client. Owned by |
634 // |window_server_delegate_| | 634 // |window_server_delegate_| |
635 TestWindowTreeClient* wm_client_; | 635 TestWindowTreeClient* wm_client_; |
636 // Owned by WindowServer | 636 // Owned by WindowServer |
637 TestDisplayBinding* display_binding_; | 637 TestDisplayBinding* display_binding_; |
638 // Owned by WindowServer's DisplayManager. | 638 // Owned by WindowServer's DisplayManager. |
639 Display* display_; | 639 Display* display_; |
640 scoped_refptr<SurfacesState> surfaces_state_; | 640 scoped_refptr<DisplayCompositor> display_compositor_; |
641 | 641 |
642 DISALLOW_COPY_AND_ASSIGN(WindowEventTargetingHelper); | 642 DISALLOW_COPY_AND_ASSIGN(WindowEventTargetingHelper); |
643 }; | 643 }; |
644 | 644 |
645 // ----------------------------------------------------------------------------- | 645 // ----------------------------------------------------------------------------- |
646 | 646 |
647 // Returns the first and only root of |tree|. If |tree| has zero or more than | 647 // Returns the first and only root of |tree|. If |tree| has zero or more than |
648 // one root returns null. | 648 // one root returns null. |
649 ServerWindow* FirstRoot(WindowTree* tree); | 649 ServerWindow* FirstRoot(WindowTree* tree); |
650 | 650 |
(...skipping 10 matching lines...) Expand all Loading... |
661 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 661 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
662 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 662 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
663 ServerWindow* parent, | 663 ServerWindow* parent, |
664 ClientWindowId* client_id); | 664 ClientWindowId* client_id); |
665 | 665 |
666 } // namespace test | 666 } // namespace test |
667 } // namespace ws | 667 } // namespace ws |
668 } // namespace ui | 668 } // namespace ui |
669 | 669 |
670 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 670 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
OLD | NEW |