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

Unified Diff: ash/screen_ash.cc

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
« ash/launcher/launcher.cc ('K') | « ash/screen_ash.h ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_ash.cc
diff --git a/ash/screen_ash.cc b/ash/screen_ash.cc
index f512ff6dbacf066545e3fd6f8885b3347ff5549e..ad679a15615b645dd62882635741f37f52b2bd96 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -4,6 +4,8 @@
#include "ash/screen_ash.h"
+#include "ash/shell.h"
+#include "ash/wm/shelf_layout_manager.h"
#include "base/logging.h"
#include "ui/aura/env.h"
#include "ui/aura/monitor.h"
@@ -29,6 +31,16 @@ ScreenAsh::ScreenAsh(aura::RootWindow* root_window)
ScreenAsh::~ScreenAsh() {
}
+// static
+gfx::Rect ScreenAsh::GetMaximizedWindowBounds(aura::Window* window) {
+ return Shell::GetInstance()->shelf()->GetMaximizedWindowBounds(window);
+}
+
+// static
+gfx::Rect ScreenAsh::GetUnmaximizedWorkAreaBounds(aura::Window* window) {
+ return Shell::GetInstance()->shelf()->GetUnmaximizedWorkAreaBounds(window);
+}
+
gfx::Point ScreenAsh::GetCursorScreenPointImpl() {
return root_window_->last_mouse_location();
}
« ash/launcher/launcher.cc ('K') | « ash/screen_ash.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698