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