| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/wm/common/wm_snap_to_pixel_layout_manager.h" | 5 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/wm/common/wm_window.h" | 7 #include "ash/common/wm/wm_window.h" |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 namespace wm { | 10 namespace wm { |
| 11 | 11 |
| 12 WmSnapToPixelLayoutManager::WmSnapToPixelLayoutManager() {} | 12 WmSnapToPixelLayoutManager::WmSnapToPixelLayoutManager() {} |
| 13 | 13 |
| 14 WmSnapToPixelLayoutManager::~WmSnapToPixelLayoutManager() {} | 14 WmSnapToPixelLayoutManager::~WmSnapToPixelLayoutManager() {} |
| 15 | 15 |
| 16 void WmSnapToPixelLayoutManager::OnWindowResized() {} | 16 void WmSnapToPixelLayoutManager::OnWindowResized() {} |
| 17 | 17 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 void WmSnapToPixelLayoutManager::SetChildBounds( | 29 void WmSnapToPixelLayoutManager::SetChildBounds( |
| 30 WmWindow* child, | 30 WmWindow* child, |
| 31 const gfx::Rect& requested_bounds) { | 31 const gfx::Rect& requested_bounds) { |
| 32 child->SetBoundsDirect(requested_bounds); | 32 child->SetBoundsDirect(requested_bounds); |
| 33 child->SnapToPixelBoundaryIfNecessary(); | 33 child->SnapToPixelBoundaryIfNecessary(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace wm | 36 } // namespace wm |
| 37 } // namespace ash | 37 } // namespace ash |
| OLD | NEW |