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

Unified Diff: ui/display/types/native_display_delegate.h

Issue 2324163002: Add FakeDisplayDelegate for off device usage. (Closed)
Patch Set: Rebase and expand. 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
Index: ui/display/types/native_display_delegate.h
diff --git a/ui/display/types/native_display_delegate.h b/ui/display/types/native_display_delegate.h
index b17be8f1cffda92a19ad1e77a6591bd75486a8dc..43f93150a9cd08247f2e80ae43e4b00f5d0b77d4 100644
--- a/ui/display/types/native_display_delegate.h
+++ b/ui/display/types/native_display_delegate.h
@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "ui/display/types/display_constants.h"
#include "ui/display/types/display_types_export.h"
+#include "ui/display/types/virtual_display_controller.h"
namespace gfx {
class Point;
@@ -21,7 +22,6 @@ class Size;
namespace ui {
class DisplayMode;
class DisplaySnapshot;
-
class NativeDisplayObserver;
struct GammaRampRGBEntry;
@@ -117,6 +117,11 @@ class DISPLAY_TYPES_EXPORT NativeDisplayDelegate {
virtual void AddObserver(NativeDisplayObserver* observer) = 0;
virtual void RemoveObserver(NativeDisplayObserver* observer) = 0;
+
+ // Returns a virtual display controller that can modify the virtual display
+ // state. Will return null if not needed, most likely because this delegate
+ // doesn't use virtual displays.
+ virtual display::VirtualDisplayController* GetVirtualDisplayController() = 0;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698