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

Unified Diff: services/ui/display/platform_screen_stub.h

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 2 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/display/platform_screen_ozone_unittests.cc ('k') | services/ui/display/platform_screen_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen_stub.h
diff --git a/services/ui/display/platform_screen_stub.h b/services/ui/display/platform_screen_stub.h
index 4ce23038a3216381995e2535eb089d910b66416c..787f497c2af7bcd2b770ba080cc4eefcb0ceaf60 100644
--- a/services/ui/display/platform_screen_stub.h
+++ b/services/ui/display/platform_screen_stub.h
@@ -7,9 +7,9 @@
#include <stdint.h>
-#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "services/ui/display/platform_screen.h"
+#include "services/ui/display/viewport_metrics.h"
namespace display {
@@ -30,6 +30,10 @@ class PlatformScreenStub : public PlatformScreen {
void RequestCloseDisplay(int64_t display_id) override;
int64_t GetPrimaryDisplayId() const override;
+ // Sample display information.
+ int64_t display_id_ = 1;
+ ViewportMetrics display_metrics_;
+
PlatformScreenDelegate* delegate_ = nullptr;
base::WeakPtrFactory<PlatformScreenStub> weak_ptr_factory_;
« no previous file with comments | « services/ui/display/platform_screen_ozone_unittests.cc ('k') | services/ui/display/platform_screen_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698