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

Unified Diff: ash/wm/workspace/frame_maximize_button.cc

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/wm/window_resizer.cc ('k') | ash/wm/workspace/maximized_workspace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/frame_maximize_button.cc
diff --git a/ash/wm/workspace/frame_maximize_button.cc b/ash/wm/workspace/frame_maximize_button.cc
index 2504e2b42279699a85b96b7313dded5e279397d7..c57a385d16e384d9a92e16962c79f6413163c960 100644
--- a/ash/wm/workspace/frame_maximize_button.cc
+++ b/ash/wm/workspace/frame_maximize_button.cc
@@ -362,7 +362,7 @@ gfx::Rect FrameMaximizeButton::ScreenBoundsForType(SnapType type) const {
case SNAP_MAXIMIZE:
return ScreenAsh::ConvertRectToScreen(
window->parent(),
- ScreenAsh::GetMaximizedWindowParentBounds(window));
+ ScreenAsh::GetMaximizedWindowBoundsInParent(window));
case SNAP_MINIMIZE: {
Launcher* launcher = Shell::GetInstance()->launcher();
gfx::Rect item_rect(launcher->GetScreenBoundsOfItemIconForWindow(window));
@@ -372,11 +372,12 @@ gfx::Rect FrameMaximizeButton::ScreenBoundsForType(SnapType type) const {
item_rect.Inset(-8, -8);
return item_rect;
}
- return launcher->widget()->GetWindowScreenBounds();
+ return launcher->widget()->GetWindowBoundsInScreen();
}
case SNAP_RESTORE: {
const gfx::Rect* restore = GetRestoreBoundsInScreen(window);
- return restore ? *restore : frame_->GetWidget()->GetWindowScreenBounds();
+ return restore ?
+ *restore : frame_->GetWidget()->GetWindowBoundsInScreen();
}
case SNAP_NONE:
NOTREACHED();
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/workspace/maximized_workspace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698