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

Unified Diff: ash/wm/wm_snap_to_pixel_layout_manager.cc

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: feedback Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/window_positioning_utils.cc ('k') | ash/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/wm_snap_to_pixel_layout_manager.cc
diff --git a/ash/wm/wm_snap_to_pixel_layout_manager.cc b/ash/wm/wm_snap_to_pixel_layout_manager.cc
index e27d77e4dd868a9f38d3b071cdf90ec93df21c5a..a645cc8b3633243cc92209103e2fe96f99a85827 100644
--- a/ash/wm/wm_snap_to_pixel_layout_manager.cc
+++ b/ash/wm/wm_snap_to_pixel_layout_manager.cc
@@ -20,8 +20,8 @@ WmSnapToPixelLayoutManager::~WmSnapToPixelLayoutManager() {}
// static
void WmSnapToPixelLayoutManager::InstallOnContainers(WmWindow* window) {
for (WmWindow* child : window->GetChildren()) {
- if (child->GetShellWindowId() < kShellWindowId_Min ||
- child->GetShellWindowId() > kShellWindowId_Max) // not a container
+ if (child->aura_window()->id() < kShellWindowId_Min ||
+ child->aura_window()->id() > kShellWindowId_Max) // not a container
continue;
if (child->aura_window()->GetProperty(kSnapChildrenToPixelBoundary)) {
if (!child->GetLayoutManager() && !child->aura_window()->layout_manager())
« no previous file with comments | « ash/wm/window_positioning_utils.cc ('k') | ash/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698