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

Unified Diff: ash/display/display_manager.h

Issue 1261693004: Allow dynamic enabling/disabling of unified desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « ash/display/display_layout_store.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.h
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h
index 481310bfbb2bb8f72830a4a97a5536665f58d1c6..fa5cccf7ebc30a082c82a8af0786a50046b41572 100644
--- a/ash/display/display_manager.h
+++ b/ash/display/display_manager.h
@@ -250,6 +250,12 @@ class ASH_EXPORT DisplayManager
const DisplayList& software_mirroring_display_list() const {
return software_mirroring_display_list_;
}
+
+ // Sets/gets if the unified desktop feature is enabled.
+ void SetUnifiedDesktopEnabled(bool enabled);
+ bool unified_desktop_enabled() const { return unified_desktop_enabled_; }
+
+ // Returns true if it's in unified desktop mode.
bool IsInUnifiedMode() const;
// Returns the display used for software mirrroring. Returns invalid
@@ -282,15 +288,15 @@ class ASH_EXPORT DisplayManager
bool SoftwareMirroringEnabled() const override;
#endif
- // Sets/gets multi display mode.
- void SetMultiDisplayMode(MultiDisplayMode mode);
-
// Sets/gets default multi display mode.
- void SetDefaultMultiDisplayMode(MultiDisplayMode mode);
- MultiDisplayMode default_multi_display_mode() const {
- return default_multi_display_mode_;
+ void SetDefaultMultiDisplayModeForCurrentDisplays(MultiDisplayMode mode);
+ MultiDisplayMode current_default_multi_display_mode() const {
+ return current_default_multi_display_mode_;
}
+ // Sets multi display mode.
+ void SetMultiDisplayMode(MultiDisplayMode mode);
+
// Reconfigure display configuration using the same
// physical display. TODO(oshima): Refactor and move this
// impl to |SetDefaultMultiDisplayMode|.
@@ -421,7 +427,7 @@ private:
bool change_display_upon_host_resize_;
MultiDisplayMode multi_display_mode_;
- MultiDisplayMode default_multi_display_mode_;
+ MultiDisplayMode current_default_multi_display_mode_;
int64 mirroring_display_id_;
DisplayList software_mirroring_display_list_;
@@ -432,6 +438,8 @@ private:
// User preference for the rotation of the internal display.
gfx::Display::Rotation registered_internal_display_rotation_;
+ bool unified_desktop_enabled_;
+
base::WeakPtrFactory<DisplayManager> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DisplayManager);
« no previous file with comments | « ash/display/display_layout_store.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698