summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window.h
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-22 21:12:27 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-22 21:12:27 +0000
commitb06392858ab76a6720352022f224b1144af06548 (patch)
tree13f484806c2596c0dd807df27e5458460c1abb23 /ui/aura/root_window.h
parentfdfcfe325f7d00f4f729b99ed39e6f039fb01feb (diff)
downloadchromium_src-b06392858ab76a6720352022f224b1144af06548.zip
chromium_src-b06392858ab76a6720352022f224b1144af06548.tar.gz
chromium_src-b06392858ab76a6720352022f224b1144af06548.tar.bz2
Aura: Automatically use compact window mode on narrow displays
We default to compact mode on displays with a width of 1366 (ZGB) and narrower. Only do this when we're not running in a window, to avoid changing the default for Aura developers running on desktop workstations. BUG=108187 TEST=added unit test Review URL: http://codereview.chromium.org/9018022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window.h')
-rw-r--r--ui/aura/root_window.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 0af56b2..b3e91ec 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -53,6 +53,9 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
static void set_use_fullscreen_host_window(bool use_fullscreen) {
use_fullscreen_host_window_ = use_fullscreen;
}
+ static bool use_fullscreen_host_window() {
+ return use_fullscreen_host_window_;
+ }
ui::Compositor* compositor() { return compositor_.get(); }
gfx::Point last_mouse_location() const { return last_mouse_location_; }