Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: services/ui/ws/test_utils.h

Issue 2127383003: mus: Introduce high-contrast mode in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698