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

Unified Diff: ui/display/chromeos/display_configurator.h

Issue 615133002: Add support for a virtual display on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ash/ dep from content Created 5 years, 9 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 | « ui/display/chromeos/configure_displays_task.cc ('k') | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator.h
diff --git a/ui/display/chromeos/display_configurator.h b/ui/display/chromeos/display_configurator.h
index 8d5cba79e4f6e17977762a0e364302035e827fd4..80b9243b4e2ce5e229b28d0b0893249e66c79942 100644
--- a/ui/display/chromeos/display_configurator.h
+++ b/ui/display/chromeos/display_configurator.h
@@ -18,6 +18,7 @@
#include "base/observer_list.h"
#include "base/timer/timer.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
+#include "ui/display/chromeos/display_snapshot_virtual.h"
#include "ui/display/display_export.h"
#include "ui/display/types/display_constants.h"
#include "ui/display/types/native_display_observer.h"
@@ -289,9 +290,17 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
bool SetColorCalibrationProfile(int64_t display_id,
ui::ColorCalibrationProfile new_profile);
+ // Enables/disables virtual display.
+ void EnableVirtualDisplay(gfx::Size display_size);
+ void DisableVirtualDisplay();
+ bool IsVirtualDisplayEnabled() const;
+
+ // Finds the virtual display id, returns gfx::Display::kInvalidDisplayID if
+ // none.
+ int64_t GetVirtualDisplayId();
+
// static
static DisplayConfigurator* GetInstance();
-
private:
friend struct DefaultSingletonTraits<DisplayConfigurator>;
friend class ui::test::DisplayConfiguratorTest;
@@ -429,6 +438,9 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
// Whether the displays are currently suspended.
bool displays_suspended_;
+ // Virtual display control.
+ scoped_ptr<DisplaySnapshotVirtual> virtual_display_snapshot_;
+
scoped_ptr<DisplayLayoutManager> layout_manager_;
scoped_ptr<UpdateDisplayConfigurationTask> configuration_task_;
« no previous file with comments | « ui/display/chromeos/configure_displays_task.cc ('k') | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698