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

Unified Diff: services/ui/ws/test_utils.cc

Issue 2161993002: Start using display.mojom.Display in mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_traits
Patch Set: Fixes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/user_display_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.cc
diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc
index 40debd5e20d291bf66542e2f115a4bff5dedccbe..26325452d31a759664aadd2475e9b979cd510325 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -4,6 +4,8 @@
#include "services/ui/ws/test_utils.h"
+#include <utility>
+
#include "base/memory/ptr_util.h"
#include "cc/output/copy_output_request.h"
#include "services/shell/public/interfaces/connector.mojom.h"
@@ -46,7 +48,9 @@ class TestPlatformDisplay : public PlatformDisplay {
void SetCapture() override {}
void ReleaseCapture() override {}
void SetCursorById(int32_t cursor) override { *cursor_id_storage_ = cursor; }
- mojom::Rotation GetRotation() override { return mojom::Rotation::VALUE_0; }
+ ::display::Display::Rotation GetRotation() override {
+ return ::display::Display::Rotation::ROTATE_0;
+ }
float GetDeviceScaleFactor() override {
return display_metrics_.device_scale_factor;
}
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/user_display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698