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

Unified Diff: ui/display/types/virtual_display_controller.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/virtual_display_controller.h
diff --git a/ui/display/types/virtual_display_controller.h b/ui/display/types/virtual_display_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..53b6408fd76fda857b936f14951d9bcb70182c01
--- /dev/null
+++ b/ui/display/types/virtual_display_controller.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_DISPLAY_TYPES_VIRTUAL_DISPLAY_CONTROLLER_H_
+#define UI_DISPLAY_TYPES_VIRTUAL_DISPLAY_CONTROLLER_H_
+
+#include <stdint.h>
+
+#include "ui/display/types/display_types_export.h"
+
+namespace gfx {
+class Size;
+}
+
+namespace display {
+
+// Controls the virtual display state. Provided by the NativeDisplayDelegate if
+// it is intended for use off device where there are no real displays.
+class DISPLAY_TYPES_EXPORT VirtualDisplayController {
+ public:
+ virtual ~VirtualDisplayController() {}
+
+ // Adds a virtual display with the specified size, returns the display id or
+ // |kInvalidDisplayId| if it fails.
+ virtual int64_t AddVirtualDisplay(const gfx::Size& display_size) = 0;
+
+ // Removes a virtual display, returns true if successful.
+ virtual bool RemoveVirtualDisplay(int64_t display_id) = 0;
+};
+
+} // namespace display
+
+#endif // UI_DISPLAY_TYPES_VIRTUAL_DISPLAY_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698