| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 mojom::Cursor* cursor_storage_; | 278 mojom::Cursor* cursor_storage_; |
| 279 | 279 |
| 280 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory); | 280 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory); |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 // ----------------------------------------------------------------------------- | 283 // ----------------------------------------------------------------------------- |
| 284 | 284 |
| 285 // A stub implementation of FrameGeneratorDelegate. | 285 // A stub implementation of FrameGeneratorDelegate. |
| 286 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { | 286 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { |
| 287 public: | 287 public: |
| 288 TestFrameGeneratorDelegate(); | 288 TestFrameGeneratorDelegate(ServerWindow* root_window); |
| 289 ~TestFrameGeneratorDelegate() override; | 289 ~TestFrameGeneratorDelegate() override; |
| 290 | 290 |
| 291 // FrameGeneratorDelegate: | 291 // FrameGeneratorDelegate: |
| 292 ServerWindow* GetActiveRootWindow() override; |
| 292 bool IsInHighContrastMode() override; | 293 bool IsInHighContrastMode() override; |
| 293 | 294 |
| 294 private: | 295 private: |
| 296 ServerWindow* root_window_; |
| 297 |
| 295 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); | 298 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); |
| 296 }; | 299 }; |
| 297 | 300 |
| 298 // ----------------------------------------------------------------------------- | 301 // ----------------------------------------------------------------------------- |
| 299 | 302 |
| 300 class TestWindowManager : public mojom::WindowManager { | 303 class TestWindowManager : public mojom::WindowManager { |
| 301 public: | 304 public: |
| 302 TestWindowManager() | 305 TestWindowManager() |
| 303 : got_create_top_level_window_(false), | 306 : got_create_top_level_window_(false), |
| 304 change_id_(0u), | 307 change_id_(0u), |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 673 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 671 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 674 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 672 ServerWindow* parent, | 675 ServerWindow* parent, |
| 673 ClientWindowId* client_id); | 676 ClientWindowId* client_id); |
| 674 | 677 |
| 675 } // namespace test | 678 } // namespace test |
| 676 } // namespace ws | 679 } // namespace ws |
| 677 } // namespace ui | 680 } // namespace ui |
| 678 | 681 |
| 679 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 682 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |