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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs 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
« no previous file with comments | « ash/common/wm/wm_snap_to_pixel_layout_manager.h ('k') | ash/common/wm/wm_toplevel_window_event_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 79afc8959f080494fe688109b5c6bc053c834e07..0000000000000000000000000000000000000000
--- a/ash/common/wm/wm_snap_to_pixel_layout_manager.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
-
-#include "ash/common/wm_window.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 {
-
-WmSnapToPixelLayoutManager::WmSnapToPixelLayoutManager() {}
-
-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
- continue;
- if (child->aura_window()->GetProperty(kSnapChildrenToPixelBoundary)) {
- if (!child->GetLayoutManager())
- child->SetLayoutManager(base::MakeUnique<WmSnapToPixelLayoutManager>());
- } else {
- InstallOnContainers(child);
- }
- }
-}
-
-void WmSnapToPixelLayoutManager::OnWindowResized() {}
-
-void WmSnapToPixelLayoutManager::OnWindowAddedToLayout(WmWindow* child) {}
-
-void WmSnapToPixelLayoutManager::OnWillRemoveWindowFromLayout(WmWindow* child) {
-}
-
-void WmSnapToPixelLayoutManager::OnWindowRemovedFromLayout(WmWindow* child) {}
-
-void WmSnapToPixelLayoutManager::OnChildWindowVisibilityChanged(WmWindow* child,
- bool visibile) {
-}
-
-void WmSnapToPixelLayoutManager::SetChildBounds(
- WmWindow* child,
- const gfx::Rect& requested_bounds) {
- child->SetBoundsDirect(requested_bounds);
- child->SnapToPixelBoundaryIfNecessary();
-}
-
-} // namespace wm
-} // namespace ash
« no previous file with comments | « ash/common/wm/wm_snap_to_pixel_layout_manager.h ('k') | ash/common/wm/wm_toplevel_window_event_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698