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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 // WindowServerDelegate: | 480 // WindowServerDelegate: |
481 void OnNoMoreDisplays() override; | 481 void OnNoMoreDisplays() override; |
482 std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( | 482 std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( |
483 BindingType type, | 483 BindingType type, |
484 ws::WindowServer* window_server, | 484 ws::WindowServer* window_server, |
485 ws::WindowTree* tree, | 485 ws::WindowTree* tree, |
486 mojom::WindowTreeRequest* tree_request, | 486 mojom::WindowTreeRequest* tree_request, |
487 mojom::WindowTreeClientPtr* client) override; | 487 mojom::WindowTreeClientPtr* client) override; |
488 void CreateDefaultDisplays() override; | 488 void CreateDefaultDisplays() override; |
489 bool IsTestConfig() const override; | 489 bool IsTestConfig() const override; |
| 490 void UpdateTouchTransforms() override {} |
490 | 491 |
491 private: | 492 private: |
492 // If CreateDefaultDisplays() this is the number of Displays that are | 493 // If CreateDefaultDisplays() this is the number of Displays that are |
493 // created. The default is 0, which results in a DCHECK. | 494 // created. The default is 0, which results in a DCHECK. |
494 int num_displays_to_create_ = 0; | 495 int num_displays_to_create_ = 0; |
495 WindowServer* window_server_ = nullptr; | 496 WindowServer* window_server_ = nullptr; |
496 bool got_on_no_more_displays_ = false; | 497 bool got_on_no_more_displays_ = false; |
497 // All TestWindowTreeBinding objects created via CreateWindowTreeBinding. | 498 // All TestWindowTreeBinding objects created via CreateWindowTreeBinding. |
498 // These are owned by the corresponding WindowTree. | 499 // These are owned by the corresponding WindowTree. |
499 std::vector<TestWindowTreeBinding*> bindings_; | 500 std::vector<TestWindowTreeBinding*> bindings_; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 576 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
576 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 577 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
577 ServerWindow* parent, | 578 ServerWindow* parent, |
578 ClientWindowId* client_id); | 579 ClientWindowId* client_id); |
579 | 580 |
580 } // namespace test | 581 } // namespace test |
581 } // namespace ws | 582 } // namespace ws |
582 } // namespace ui | 583 } // namespace ui |
583 | 584 |
584 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 585 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
OLD | NEW |