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

Unified Diff: ash/common/wm_shell.h

Issue 2215223004: mash: Migrate ShelfLayoutManager ScreenUtil usage to ash common types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore screen bounds conversion for app list. Created 4 years, 4 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/common/wm/wm_screen_util.cc ('k') | ash/display/window_tree_host_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index e0dd7f6afc80a94191d454a1ac7c9b164fed17d9..dcb483055d60b33e5f10aba57a6c996d88a1661f 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -17,6 +17,10 @@
#include "base/observer_list.h"
#include "ui/base/ui_base_types.h"
+namespace display {
+class Display;
+}
+
namespace gfx {
class Point;
}
@@ -158,13 +162,22 @@ class ASH_EXPORT WmShell {
WmWindow* GetRootWindowForNewWindows();
// Retuns the display info associated with |display_id|.
- // TODO(msw): Remove this when DisplayManager has been moved. crbug.com/622480
+ // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0;
// Matches that of DisplayManager::IsActiveDisplayId().
- // TODO: Remove this when DisplayManager has been moved. crbug.com/622480
+ // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
virtual bool IsActiveDisplayId(int64_t display_id) const = 0;
+ // Returns true if the desktop is in unified mode.
+ // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
+ virtual bool IsInUnifiedMode() const = 0;
+
+ // Returns the first display; this is the first display listed by hardware,
+ // which corresponds to internal displays on devices with integrated displays.
+ // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
+ virtual display::Display GetFirstDisplay() const = 0;
+
// Returns true if the first window shown on first run should be
// unconditionally maximized, overriding the heuristic that normally chooses
// the window size.
« no previous file with comments | « ash/common/wm/wm_screen_util.cc ('k') | ash/display/window_tree_host_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698