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

Unified Diff: ash/display/display_manager.h

Issue 1838833002: Move DisplayLayout and DisplayLayoutBuilder From ash To ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screenwinmove
Patch Set: Fix comment Created 4 years, 8 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 6a437bc203b6aac5432322c3d5469fcc71377315..1ef1ea4dcb030ceea3a4f0c8c910b6fd77c11511 100644
--- a/ash/display/display_manager.h
+++ b/ash/display/display_manager.h
@@ -13,12 +13,12 @@
#include "ash/ash_export.h"
#include "ash/display/display_info.h"
-#include "ash/display/display_layout.h"
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "ui/display/manager/display_layout.h"
#include "ui/gfx/display.h"
#if defined(OS_CHROMEOS)
@@ -131,14 +131,14 @@ class ASH_EXPORT DisplayManager
void RefreshFontParams();
// Returns the display layout used for current displays.
- const DisplayLayout& GetCurrentDisplayLayout() const;
+ const display::DisplayLayout& GetCurrentDisplayLayout() const;
// Returns the current display list.
- DisplayIdList GetCurrentDisplayIdList() const;
+ display::DisplayIdList GetCurrentDisplayIdList() const;
// Sets the layout for the current display pair. The |layout| specifies
// the locaion of the displays relative to their parents.
- void SetLayoutForCurrentDisplays(scoped_ptr<DisplayLayout> layout);
+ void SetLayoutForCurrentDisplays(scoped_ptr<display::DisplayLayout> layout);
// Returns display for given |id|;
const gfx::Display& GetDisplayForId(int64_t id) const;
@@ -237,7 +237,7 @@ class ASH_EXPORT DisplayManager
// when displays are mirrored.
size_t GetNumDisplays() const;
- const DisplayList& active_display_list() const {
+ const display::DisplayList& active_display_list() const {
return active_display_list_;
}
@@ -252,7 +252,7 @@ class ASH_EXPORT DisplayManager
// Returns the mirroring status.
bool IsInMirrorMode() const;
int64_t mirroring_display_id() const { return mirroring_display_id_; }
- const DisplayList& software_mirroring_display_list() const {
+ const display::DisplayList& software_mirroring_display_list() const {
return software_mirroring_display_list_;
}
@@ -389,7 +389,7 @@ private:
// the layout registered for the display pair. For more than 2 displays,
// the bounds are updated using horizontal layout.
void UpdateNonPrimaryDisplayBoundsForLayout(
- DisplayList* display_list,
+ display::DisplayList* display_list,
std::vector<size_t>* updated_indices);
void CreateMirrorWindowIfAny();
@@ -398,14 +398,14 @@ private:
// Applies the |layout| and updates the bounds of displays in |display_list|.
// |updated_ids| contains the ids for displays whose bounds have changed.
- void ApplyDisplayLayout(const DisplayLayout& layout,
- DisplayList* display_list,
+ void ApplyDisplayLayout(const display::DisplayLayout& layout,
+ display::DisplayList* display_list,
std::vector<int64_t>* updated_ids);
// Apply the display placement to the display layout.
// Returns true if the display bounds has been updated.
- bool ApplyDisplayPlacement(const DisplayPlacement& placement,
- DisplayList* display_list);
+ bool ApplyDisplayPlacement(const display::DisplayPlacement& placement,
+ display::DisplayList* display_list);
Delegate* delegate_; // not owned.
@@ -416,7 +416,7 @@ private:
int64_t first_display_id_;
// List of current active displays.
- DisplayList active_display_list_;
+ display::DisplayList active_display_list_;
int num_connected_displays_;
@@ -439,7 +439,7 @@ private:
MultiDisplayMode current_default_multi_display_mode_;
int64_t mirroring_display_id_;
- DisplayList software_mirroring_display_list_;
+ display::DisplayList software_mirroring_display_list_;
// User preference for rotation lock of the internal display.
bool registered_internal_display_rotation_lock_;
« 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