| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef ASH_WM_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/aura/layout_manager.h" | 10 #include "ui/aura/layout_manager.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // descendants of |window|. | 23 // descendants of |window|. |
| 24 static void InstallOnContainers(aura::Window* window); | 24 static void InstallOnContainers(aura::Window* window); |
| 25 | 25 |
| 26 protected: | 26 protected: |
| 27 // Overridden from aura::LayoutManager: | 27 // Overridden from aura::LayoutManager: |
| 28 void OnWindowResized() override; | 28 void OnWindowResized() override; |
| 29 void OnWindowAddedToLayout(aura::Window* child) override; | 29 void OnWindowAddedToLayout(aura::Window* child) override; |
| 30 void OnWillRemoveWindowFromLayout(aura::Window* child) override; | 30 void OnWillRemoveWindowFromLayout(aura::Window* child) override; |
| 31 void OnWindowRemovedFromLayout(aura::Window* child) override; | 31 void OnWindowRemovedFromLayout(aura::Window* child) override; |
| 32 void OnChildWindowVisibilityChanged(aura::Window* child, | 32 void OnChildWindowVisibilityChanged(aura::Window* child, |
| 33 bool visibile) override; | 33 bool visible) override; |
| 34 void SetChildBounds(aura::Window* child, | 34 void SetChildBounds(aura::Window* child, |
| 35 const gfx::Rect& requested_bounds) override; | 35 const gfx::Rect& requested_bounds) override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(WmSnapToPixelLayoutManager); | 38 DISALLOW_COPY_AND_ASSIGN(WmSnapToPixelLayoutManager); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace wm | 41 } // namespace wm |
| 42 } // namespace ash | 42 } // namespace ash |
| 43 | 43 |
| 44 #endif // ASH_WM_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ | 44 #endif // ASH_WM_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ |
| OLD | NEW |