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

Unified Diff: trunk/src/ash/wm/workspace/workspace_window_resizer.cc

Issue 132183006: Revert 244050 "This is part 1 of implemeting phantom windows for..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/ash/wm/workspace/workspace_window_resizer.cc
===================================================================
--- trunk/src/ash/wm/workspace/workspace_window_resizer.cc (revision 244088)
+++ trunk/src/ash/wm/workspace/workspace_window_resizer.cc (working copy)
@@ -562,6 +562,15 @@
instance_ = this;
}
+gfx::Rect WorkspaceWindowResizer::GetFinalBounds(
+ const gfx::Rect& bounds) const {
+ if (snap_phantom_window_controller_.get() &&
+ snap_phantom_window_controller_->IsShowing()) {
+ return snap_phantom_window_controller_->bounds_in_screen();
+ }
+ return bounds;
+}
+
void WorkspaceWindowResizer::LayoutAttachedWindows(
gfx::Rect* bounds) {
gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window()));
« no previous file with comments | « trunk/src/ash/wm/workspace/workspace_window_resizer.h ('k') | trunk/src/ash/wm/workspace/workspace_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698