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/wm_snap_to_pixel_layout_manager.h" | 5 #include "ash/wm/wm_snap_to_pixel_layout_manager.h" |
6 | 6 |
7 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
8 #include "ash/wm/window_properties.h" | 8 #include "ash/wm/window_properties.h" |
9 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 void WmSnapToPixelLayoutManager::OnWindowAddedToLayout(aura::Window* child) {} | 36 void WmSnapToPixelLayoutManager::OnWindowAddedToLayout(aura::Window* child) {} |
37 | 37 |
38 void WmSnapToPixelLayoutManager::OnWillRemoveWindowFromLayout( | 38 void WmSnapToPixelLayoutManager::OnWillRemoveWindowFromLayout( |
39 aura::Window* child) {} | 39 aura::Window* child) {} |
40 | 40 |
41 void WmSnapToPixelLayoutManager::OnWindowRemovedFromLayout( | 41 void WmSnapToPixelLayoutManager::OnWindowRemovedFromLayout( |
42 aura::Window* child) {} | 42 aura::Window* child) {} |
43 | 43 |
44 void WmSnapToPixelLayoutManager::OnChildWindowVisibilityChanged( | 44 void WmSnapToPixelLayoutManager::OnChildWindowVisibilityChanged( |
45 aura::Window* child, | 45 aura::Window* child, |
46 bool visibile) {} | 46 bool visible) {} |
47 | 47 |
48 void WmSnapToPixelLayoutManager::SetChildBounds( | 48 void WmSnapToPixelLayoutManager::SetChildBounds( |
49 aura::Window* child, | 49 aura::Window* child, |
50 const gfx::Rect& requested_bounds) { | 50 const gfx::Rect& requested_bounds) { |
51 SetChildBoundsDirect(child, requested_bounds); | 51 SetChildBoundsDirect(child, requested_bounds); |
52 wm::SnapWindowToPixelBoundary(child); | 52 wm::SnapWindowToPixelBoundary(child); |
53 } | 53 } |
54 | 54 |
55 } // namespace wm | 55 } // namespace wm |
56 } // namespace ash | 56 } // namespace ash |
OLD | NEW |