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

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

Issue 2190633002: Add flag to launch two displays for mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. 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/platform_display.cc ('k') | no next file » | 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 26325452d31a759664aadd2475e9b979cd510325..795954c86a95926fc5f43362cb8633b39560126e 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -29,7 +29,7 @@ class TestPlatformDisplay : public PlatformDisplay {
public:
explicit TestPlatformDisplay(int32_t* cursor_id_storage)
: cursor_id_storage_(cursor_id_storage) {
- display_metrics_.size_in_pixels = gfx::Size(400, 300);
+ display_metrics_.bounds = gfx::Rect(0, 0, 400, 300);
display_metrics_.device_scale_factor = 1.f;
}
~TestPlatformDisplay() override {}
@@ -60,6 +60,7 @@ class TestPlatformDisplay : public PlatformDisplay {
void RequestCopyOfOutput(
std::unique_ptr<cc::CopyOutputRequest> output_request) override {}
int64_t GetDisplayId() const override { return 1; }
+ gfx::Rect GetBounds() const override { return display_metrics_.bounds; }
private:
ViewportMetrics display_metrics_;
« no previous file with comments | « services/ui/ws/platform_display.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698