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

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

Issue 2324163002: Add FakeDisplayDelegate for off device usage. (Closed)
Patch Set: Fix windows compile problems. Created 4 years, 3 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 | « no previous file | services/ui/display/platform_screen_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen_ozone.h
diff --git a/services/ui/display/platform_screen_ozone.h b/services/ui/display/platform_screen_ozone.h
index 521ead33aa394f005efe4fc06a817f032b788894..8e2361f89e228a368be52e2b2fddf1b95d0c6865 100644
--- a/services/ui/display/platform_screen_ozone.h
+++ b/services/ui/display/platform_screen_ozone.h
@@ -19,6 +19,7 @@
#include "services/ui/public/interfaces/display/display_controller.mojom.h"
#include "ui/display/chromeos/display_configurator.h"
#include "ui/display/display.h"
+#include "ui/display/types/fake_display_controller.h"
namespace display {
@@ -102,6 +103,14 @@ class PlatformScreenOzone
ui::DisplayConfigurator display_configurator_;
PlatformScreenDelegate* delegate_ = nullptr;
+ // If not null it provides a way to modify the display state when running off
+ // device (eg. running mustash on Linux).
+ FakeDisplayController* fake_display_controller_ = nullptr;
+
+ // Tracks if we've made a display configuration change and want to wait for
+ // the display configuration to update before making further changes.
+ bool wait_for_display_config_update_ = false;
+
// TODO(kylechar): These values can/should be replaced by DisplayLayout.
int64_t primary_display_id_ = display::Display::kInvalidDisplayID;
std::vector<DisplayInfo> cached_displays_;
« no previous file with comments | « no previous file | services/ui/display/platform_screen_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698