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

Unified Diff: ash/screen_ash.cc

Issue 10979090: Simplify WorkAreaBounds access logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | « ash/screen_ash.h ('k') | ash/screen_ash_unittest.cc » ('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 8a5a08913e774dc6a36ff2ed1852515392c1bbfa..4c7e1db3f48c260bebbb97b0ba6e713e5c54e702 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -40,21 +40,12 @@ gfx::Display ScreenAsh::FindDisplayContainingPoint(const gfx::Point& point) {
// static
gfx::Rect ScreenAsh::GetMaximizedWindowBoundsInParent(aura::Window* window) {
if (window->GetRootWindow() == Shell::GetPrimaryRootWindow())
- return Shell::GetInstance()->shelf()->GetMaximizedWindowBounds(window);
+ return GetDisplayWorkAreaBoundsInParent(window);
else
return GetDisplayBoundsInParent(window);
}
// static
-gfx::Rect ScreenAsh::GetUnmaximizedWorkAreaBoundsInParent(
- aura::Window* window) {
- if (window->GetRootWindow() == Shell::GetPrimaryRootWindow())
- return Shell::GetInstance()->shelf()->GetUnmaximizedWorkAreaBounds(window);
- else
- return GetDisplayWorkAreaBoundsInParent(window);
-}
-
-// static
gfx::Rect ScreenAsh::GetDisplayBoundsInParent(aura::Window* window) {
return ConvertRectFromScreen(
window->parent(),
« no previous file with comments | « ash/screen_ash.h ('k') | ash/screen_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698