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

Unified Diff: ui/aura/desktop.h

Issue 8374005: aura: Try to make Linux host resize code more reliable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update a few other gfx::Rect calls Created 9 years, 2 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 | « chrome/browser/chrome_browser_main.cc ('k') | ui/aura/desktop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop.h
diff --git a/ui/aura/desktop.h b/ui/aura/desktop.h
index debf1d7007a6298d7a524e3388c0b777c9946b28..e6b6c971db1c42d6262c88c3882f1ba5581e30fd 100644
--- a/ui/aura/desktop.h
+++ b/ui/aura/desktop.h
@@ -56,6 +56,10 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate,
return compositor_factory_;
}
+ static void set_use_fullscreen_host_window(bool use_fullscreen) {
+ use_fullscreen_host_window_ = use_fullscreen;
+ }
+
ui::Compositor* compositor() { return compositor_.get(); }
gfx::Point last_mouse_location() const { return last_mouse_location_; }
DesktopDelegate* delegate() { return delegate_.get(); }
@@ -167,12 +171,17 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate,
static Desktop* instance_;
- // Used to schedule painting.
- base::WeakPtrFactory<Desktop> schedule_paint_factory_;
-
// Factory used to create Compositors. Settable by tests.
static ui::Compositor*(*compositor_factory_)();
+ // If set before the Desktop is created, the host window will cover the entire
+ // screen. Note that this can still be overridden via the
+ // switches::kAuraHostWindowSize flag.
+ static bool use_fullscreen_host_window_;
+
+ // Used to schedule painting.
+ base::WeakPtrFactory<Desktop> schedule_paint_factory_;
+
Window* active_window_;
// Last location seen in a mouse event.
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | ui/aura/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698