summaryrefslogtreecommitdiffstats
path: root/ash/shell.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 20:56:28 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 20:56:28 +0000
commit193b39d2ef3ec7a4f1692fd4448c515c06bb46d1 (patch)
treeb35587f06293535725508764137b06c6c413c5ff /ash/shell.h
parent911cbcdade8c9386b68e3ee87cb9c2ea1c48db8e (diff)
downloadchromium_src-193b39d2ef3ec7a4f1692fd4448c515c06bb46d1.zip
chromium_src-193b39d2ef3ec7a4f1692fd4448c515c06bb46d1.tar.gz
chromium_src-193b39d2ef3ec7a4f1692fd4448c515c06bb46d1.tar.bz2
Native bounds support to host windows.
* Moved SingleMonitorManager into separate file. This is a default MonitorManager and creates RootWindow for PrimaryMonitor. * Added MonitorObserver and moved monitor change logic to ash. * MultiMonitorManager class and its layout logic will live in ash too. * Added ability to move host window so that we can re-arrange root window when switching primary monitor. * Removed monitor_manager_x11, which I committed by accident. * Use (0,0) for monitor/workarea bounds because the coordinate isn't translated yet for non primary screens. BUG=115510 TEST=none Review URL: https://chromiumcodereview.appspot.com/9703083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127231 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r--ash/shell.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ash/shell.h b/ash/shell.h
index 29e6e2b..ff52a12 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -15,6 +15,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
+#include "ui/aura/monitor_manager.h"
#include "ui/gfx/size.h"
#include "ui/gfx/insets.h"
@@ -77,7 +78,7 @@ class WorkspaceController;
//
// Upon creation, the Shell sets itself as the RootWindow's delegate, which
// takes ownership of the Shell.
-class ASH_EXPORT Shell {
+class ASH_EXPORT Shell : public aura::MonitorObserver {
public:
enum Direction {
FORWARD,
@@ -200,6 +201,9 @@ class ASH_EXPORT Shell {
// Returns the size of the grid.
int GetGridSize() const;
+ // aura::MonitorObserver overrides:
+ virtual void OnMonitorBoundsChanged(const aura::Monitor* monitor) OVERRIDE;
+
static void set_initially_hide_cursor(bool hide) {
initially_hide_cursor_ = hide;
}