| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // ----------------------------------------------------------------------------- | 277 // ----------------------------------------------------------------------------- |
| 278 | 278 |
| 279 // A stub implementation of FrameGeneratorDelegate. | 279 // A stub implementation of FrameGeneratorDelegate. |
| 280 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { | 280 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { |
| 281 public: | 281 public: |
| 282 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); | 282 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); |
| 283 ~TestFrameGeneratorDelegate() override; | 283 ~TestFrameGeneratorDelegate() override; |
| 284 | 284 |
| 285 // FrameGeneratorDelegate: | 285 // FrameGeneratorDelegate: |
| 286 ServerWindow* GetRootWindow() override; | 286 ServerWindow* GetRootWindow() override; |
| 287 void OnCompositorFrameDrawn() override {} | |
| 288 bool IsInHighContrastMode() override; | 287 bool IsInHighContrastMode() override; |
| 289 const ViewportMetrics& GetViewportMetrics() override; | 288 const ViewportMetrics& GetViewportMetrics() override; |
| 290 | 289 |
| 291 private: | 290 private: |
| 292 std::unique_ptr<ServerWindow> root_; | 291 std::unique_ptr<ServerWindow> root_; |
| 293 ViewportMetrics metrics_; | 292 ViewportMetrics metrics_; |
| 294 | 293 |
| 295 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); | 294 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); |
| 296 }; | 295 }; |
| 297 | 296 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 660 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 662 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 661 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 663 ServerWindow* parent, | 662 ServerWindow* parent, |
| 664 ClientWindowId* client_id); | 663 ClientWindowId* client_id); |
| 665 | 664 |
| 666 } // namespace test | 665 } // namespace test |
| 667 } // namespace ws | 666 } // namespace ws |
| 668 } // namespace ui | 667 } // namespace ui |
| 669 | 668 |
| 670 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 669 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |