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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 // ----------------------------------------------------------------------------- | 245 // ----------------------------------------------------------------------------- |
246 | 246 |
247 // A stub implementation of FrameGeneratorDelegate. | 247 // A stub implementation of FrameGeneratorDelegate. |
248 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { | 248 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { |
249 public: | 249 public: |
250 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); | 250 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); |
251 ~TestFrameGeneratorDelegate() override; | 251 ~TestFrameGeneratorDelegate() override; |
252 | 252 |
253 // FrameGeneratorDelegate: | 253 // FrameGeneratorDelegate: |
254 ServerWindow* GetRootWindow() override; | 254 ServerWindow* GetRootWindow() override; |
255 bool IsInHighContrastMode() override; | |
msw
2016/07/12 18:30:09
nit: order after OnCompositorFrameDrawn to match F
sadrul
2016/07/13 01:01:22
Done.
| |
255 void OnCompositorFrameDrawn() override {} | 256 void OnCompositorFrameDrawn() override {} |
256 const ViewportMetrics& GetViewportMetrics() override; | 257 const ViewportMetrics& GetViewportMetrics() override; |
257 | 258 |
258 private: | 259 private: |
259 std::unique_ptr<ServerWindow> root_; | 260 std::unique_ptr<ServerWindow> root_; |
260 ViewportMetrics metrics_; | 261 ViewportMetrics metrics_; |
261 | 262 |
262 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); | 263 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); |
263 }; | 264 }; |
264 | 265 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
556 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 557 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
557 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 558 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
558 ServerWindow* parent, | 559 ServerWindow* parent, |
559 ClientWindowId* client_id); | 560 ClientWindowId* client_id); |
560 | 561 |
561 } // namespace test | 562 } // namespace test |
562 } // namespace ws | 563 } // namespace ws |
563 } // namespace ui | 564 } // namespace ui |
564 | 565 |
565 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 566 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
OLD | NEW |