| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ash/wm/common/wm_snap_to_pixel_layout_manager.h" | |
| 6 | |
| 7 #include "ash/wm/common/wm_window.h" | |
| 8 | |
| 9 namespace ash { | |
| 10 namespace wm { | |
| 11 | |
| 12 WmSnapToPixelLayoutManager::WmSnapToPixelLayoutManager() {} | |
| 13 | |
| 14 WmSnapToPixelLayoutManager::~WmSnapToPixelLayoutManager() {} | |
| 15 | |
| 16 void WmSnapToPixelLayoutManager::OnWindowResized() {} | |
| 17 | |
| 18 void WmSnapToPixelLayoutManager::OnWindowAddedToLayout(WmWindow* child) {} | |
| 19 | |
| 20 void WmSnapToPixelLayoutManager::OnWillRemoveWindowFromLayout(WmWindow* child) { | |
| 21 } | |
| 22 | |
| 23 void WmSnapToPixelLayoutManager::OnWindowRemovedFromLayout(WmWindow* child) {} | |
| 24 | |
| 25 void WmSnapToPixelLayoutManager::OnChildWindowVisibilityChanged(WmWindow* child, | |
| 26 bool visibile) { | |
| 27 } | |
| 28 | |
| 29 void WmSnapToPixelLayoutManager::SetChildBounds( | |
| 30 WmWindow* child, | |
| 31 const gfx::Rect& requested_bounds) { | |
| 32 child->SetBoundsDirect(requested_bounds); | |
| 33 child->SnapToPixelBoundaryIfNecessary(); | |
| 34 } | |
| 35 | |
| 36 } // namespace wm | |
| 37 } // namespace ash | |
| OLD | NEW |