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

Unified Diff: ash/wm/workspace/phantom_window_controller.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/workspace/multi_window_resize_controller_unittest.cc ('k') | ash/wm/workspace/snap_sizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/phantom_window_controller.cc
diff --git a/ash/wm/workspace/phantom_window_controller.cc b/ash/wm/workspace/phantom_window_controller.cc
index 45d6140e88fb357446da82bebd29fa6e91a10c61..99861fdb3bd2ff041b58e6622ee95e4d2db97402 100644
--- a/ash/wm/workspace/phantom_window_controller.cc
+++ b/ash/wm/workspace/phantom_window_controller.cc
@@ -86,10 +86,10 @@ void PhantomWindowController::Show(const gfx::Rect& bounds) {
if (!phantom_widget_.get()) {
// Show the phantom at the bounds of the window. We'll animate to the target
// bounds.
- start_bounds_ = window_->GetScreenBounds();
+ start_bounds_ = window_->GetBoundsInScreen();
CreatePhantomWidget(start_bounds_);
} else {
- start_bounds_ = phantom_widget_->GetWindowScreenBounds();
+ start_bounds_ = phantom_widget_->GetWindowBoundsInScreen();
}
animation_.reset(new ui::SlideAnimation(this));
animation_->Show();
« no previous file with comments | « ash/wm/workspace/multi_window_resize_controller_unittest.cc ('k') | ash/wm/workspace/snap_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698