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

Side by Side Diff: ash/display/screen_position_controller.cc

Issue 1898223002: Removes most aura dependencies from WindowResizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_aura_from_window_state
Patch Set: nit and merge Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « ash/display/screen_ash.cc ('k') | ash/display/shared_display_edge_indicator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/display/screen_position_controller.h" 5 #include "ash/display/screen_position_controller.h"
6 6
7 #include "ash/display/window_tree_host_manager.h" 7 #include "ash/display/window_tree_host_manager.h"
8 #include "ash/root_window_controller.h" 8 #include "ash/root_window_controller.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
11 #include "ash/wm/coordinate_conversion.h"
12 #include "ash/wm/system_modal_container_layout_manager.h" 11 #include "ash/wm/system_modal_container_layout_manager.h"
13 #include "ash/wm/window_properties.h" 12 #include "ash/wm/window_properties.h"
14 #include "ash/wm/window_state.h" 13 #include "ash/wm/window_state.h"
15 #include "ui/aura/client/capture_client.h" 14 #include "ui/aura/client/capture_client.h"
16 #include "ui/aura/client/focus_client.h" 15 #include "ui/aura/client/focus_client.h"
17 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
18 #include "ui/aura/window_event_dispatcher.h" 17 #include "ui/aura/window_event_dispatcher.h"
19 #include "ui/aura/window_tracker.h" 18 #include "ui/aura/window_tracker.h"
20 #include "ui/aura/window_tree_host.h" 19 #include "ui/aura/window_tree_host.h"
21 #include "ui/compositor/dip_util.h" 20 #include "ui/compositor/dip_util.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 gfx::Point origin(bounds.origin()); 229 gfx::Point origin(bounds.origin());
231 const gfx::Point display_origin = gfx::Screen::GetScreen() 230 const gfx::Point display_origin = gfx::Screen::GetScreen()
232 ->GetDisplayNearestWindow(window) 231 ->GetDisplayNearestWindow(window)
233 .bounds() 232 .bounds()
234 .origin(); 233 .origin();
235 origin.Offset(-display_origin.x(), -display_origin.y()); 234 origin.Offset(-display_origin.x(), -display_origin.y());
236 window->SetBounds(gfx::Rect(origin, bounds.size())); 235 window->SetBounds(gfx::Rect(origin, bounds.size()));
237 } 236 }
238 237
239 } // namespace ash 238 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/screen_ash.cc ('k') | ash/display/shared_display_edge_indicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698