| 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 <vector> | 10 #include <vector> |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 // A stub implementation of FrameGeneratorDelegate. | 250 // A stub implementation of FrameGeneratorDelegate. |
| 251 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { | 251 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { |
| 252 public: | 252 public: |
| 253 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); | 253 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); |
| 254 ~TestFrameGeneratorDelegate() override; | 254 ~TestFrameGeneratorDelegate() override; |
| 255 | 255 |
| 256 // FrameGeneratorDelegate: | 256 // FrameGeneratorDelegate: |
| 257 ServerWindow* GetRootWindow() override; | 257 ServerWindow* GetRootWindow() override; |
| 258 void OnCompositorFrameDrawn() override {} | 258 void OnCompositorFrameDrawn() override {} |
| 259 bool IsInHighContrastMode() override; |
| 259 const ViewportMetrics& GetViewportMetrics() override; | 260 const ViewportMetrics& GetViewportMetrics() override; |
| 260 | 261 |
| 261 private: | 262 private: |
| 262 std::unique_ptr<ServerWindow> root_; | 263 std::unique_ptr<ServerWindow> root_; |
| 263 ViewportMetrics metrics_; | 264 ViewportMetrics metrics_; |
| 264 | 265 |
| 265 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); | 266 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 // ----------------------------------------------------------------------------- | 269 // ----------------------------------------------------------------------------- |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 567 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 567 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 568 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 568 ServerWindow* parent, | 569 ServerWindow* parent, |
| 569 ClientWindowId* client_id); | 570 ClientWindowId* client_id); |
| 570 | 571 |
| 571 } // namespace test | 572 } // namespace test |
| 572 } // namespace ws | 573 } // namespace ws |
| 573 } // namespace ui | 574 } // namespace ui |
| 574 | 575 |
| 575 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 576 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |