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

Unified Diff: ash/common/wm/wm_snap_to_pixel_layout_manager.cc

Issue 2731663002: Remove WmWindowProperty (Closed)
Patch Set: rebase Created 3 years, 10 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: ash/common/wm/wm_snap_to_pixel_layout_manager.cc
diff --git a/ash/common/wm/wm_snap_to_pixel_layout_manager.cc b/ash/common/wm/wm_snap_to_pixel_layout_manager.cc
index 295bc4c65b672d458b1e2ceb8b522b8a5eb9755b..79afc8959f080494fe688109b5c6bc053c834e07 100644
--- a/ash/common/wm/wm_snap_to_pixel_layout_manager.cc
+++ b/ash/common/wm/wm_snap_to_pixel_layout_manager.cc
@@ -5,9 +5,10 @@
#include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
#include "ash/common/wm_window.h"
-#include "ash/common/wm_window_property.h"
#include "ash/public/cpp/shell_window_ids.h"
+#include "ash/wm/window_properties.h"
#include "base/memory/ptr_util.h"
+#include "ui/aura/window.h"
namespace ash {
namespace wm {
@@ -22,8 +23,7 @@ void WmSnapToPixelLayoutManager::InstallOnContainers(WmWindow* window) {
if (child->GetShellWindowId() < kShellWindowId_Min ||
child->GetShellWindowId() > kShellWindowId_Max) // not a container
continue;
- if (child->GetBoolProperty(
- WmWindowProperty::SNAP_CHILDREN_TO_PIXEL_BOUNDARY)) {
+ if (child->aura_window()->GetProperty(kSnapChildrenToPixelBoundary)) {
if (!child->GetLayoutManager())
child->SetLayoutManager(base::MakeUnique<WmSnapToPixelLayoutManager>());
} else {
« no previous file with comments | « ash/common/wm/system_modal_container_layout_manager.cc ('k') | ash/common/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698