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

Unified Diff: ash/screen_ash.h

Issue 9764008: Makes the launcher auto-hide for maximized windows. This turned out to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add null checks and cleanup Created 8 years, 9 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
Index: ash/screen_ash.h
diff --git a/ash/screen_ash.h b/ash/screen_ash.h
index 20340a7b5d53d74c71f6a3fbe99c8f4832131e78..ea2021f68519babe2aefb5820ec91804b26b41e2 100644
--- a/ash/screen_ash.h
+++ b/ash/screen_ash.h
@@ -24,6 +24,13 @@ class ASH_EXPORT ScreenAsh : public gfx::Screen {
explicit ScreenAsh(aura::RootWindow* root_window);
virtual ~ScreenAsh();
+ // Returns the bounds for maximized windows. Maximized windows trigger
+ // auto-hiding the shelf.
+ static gfx::Rect GetMaximizedWindowBounds(aura::Window* window);
+
+ // Returns work area when a maximized window is not present.
+ static gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window);
+
protected:
virtual gfx::Point GetCursorScreenPointImpl() OVERRIDE;
virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl(
« ash/launcher/launcher.cc ('K') | « ash/launcher/launcher.cc ('k') | ash/screen_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698