| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 WindowServer* window_server_; | 230 WindowServer* window_server_; |
| 231 | 231 |
| 232 DISALLOW_COPY_AND_ASSIGN(TestDisplayBinding); | 232 DISALLOW_COPY_AND_ASSIGN(TestDisplayBinding); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 // ----------------------------------------------------------------------------- | 235 // ----------------------------------------------------------------------------- |
| 236 | 236 |
| 237 // Factory that dispenses TestPlatformDisplays. | 237 // Factory that dispenses TestPlatformDisplays. |
| 238 class TestPlatformDisplayFactory : public PlatformDisplayFactory { | 238 class TestPlatformDisplayFactory : public PlatformDisplayFactory { |
| 239 public: | 239 public: |
| 240 static const int64_t kFirstDisplayId; |
| 241 |
| 240 explicit TestPlatformDisplayFactory(int32_t* cursor_id_storage); | 242 explicit TestPlatformDisplayFactory(int32_t* cursor_id_storage); |
| 241 ~TestPlatformDisplayFactory(); | 243 ~TestPlatformDisplayFactory(); |
| 242 | 244 |
| 243 // PlatformDisplayFactory: | 245 // PlatformDisplayFactory: |
| 244 PlatformDisplay* CreatePlatformDisplay() override; | 246 PlatformDisplay* CreatePlatformDisplay() override; |
| 245 | 247 |
| 246 private: | 248 private: |
| 247 int32_t* cursor_id_storage_; | 249 int32_t* cursor_id_storage_; |
| 248 int64_t next_display_id_ = 1; | 250 int64_t next_display_id_; |
| 249 | 251 |
| 250 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory); | 252 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory); |
| 251 }; | 253 }; |
| 252 | 254 |
| 253 // ----------------------------------------------------------------------------- | 255 // ----------------------------------------------------------------------------- |
| 254 | 256 |
| 255 // A stub implementation of FrameGeneratorDelegate. | 257 // A stub implementation of FrameGeneratorDelegate. |
| 256 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { | 258 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { |
| 257 public: | 259 public: |
| 258 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); | 260 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 574 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 573 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 575 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 574 ServerWindow* parent, | 576 ServerWindow* parent, |
| 575 ClientWindowId* client_id); | 577 ClientWindowId* client_id); |
| 576 | 578 |
| 577 } // namespace test | 579 } // namespace test |
| 578 } // namespace ws | 580 } // namespace ws |
| 579 } // namespace ui | 581 } // namespace ui |
| 580 | 582 |
| 581 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 583 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |