| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/wm/common/ash_wm_common_export.h" | 10 #include "ash/wm/common/ash_wm_common_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class DockedWindowResizerTest; | 28 class DockedWindowResizerTest; |
| 29 class Shelf; | 29 class Shelf; |
| 30 | 30 |
| 31 namespace wm { | 31 namespace wm { |
| 32 class WmRootWindowController; | 32 class WmRootWindowController; |
| 33 class WmShelf; | 33 class WmShelf; |
| 34 } | 34 } |
| 35 | 35 |
| 36 // DockedWindowLayoutManager is responsible for organizing windows when they are | 36 // DockedWindowLayoutManager is responsible for organizing windows when they are |
| 37 // docked to the side of a screen. It is associated with a specific container | 37 // docked to the side of a screen. It is associated with a specific container |
| 38 // window (i.e. kShellWindowId_DockContainer) and controls the layout of any | 38 // window (i.e. kShellWindowId_DockedContainer) and controls the layout of any |
| 39 // windows added to that container. | 39 // windows added to that container. |
| 40 // | 40 // |
| 41 // The constructor takes a |dock_container| argument which is expected to set | 41 // The constructor takes a |dock_container| argument which is expected to set |
| 42 // its layout manager to this instance, e.g.: | 42 // its layout manager to this instance, e.g.: |
| 43 // dock_container->SetLayoutManager( | 43 // dock_container->SetLayoutManager( |
| 44 // new DockedWindowLayoutManager(dock_container)); | 44 // new DockedWindowLayoutManager(dock_container)); |
| 45 // | 45 // |
| 46 // TODO(varkha): extend BaseLayoutManager instead of LayoutManager to inherit | 46 // TODO(varkha): extend BaseLayoutManager instead of LayoutManager to inherit |
| 47 // common functionality. | 47 // common functionality. |
| 48 class ASH_WM_COMMON_EXPORT DockedWindowLayoutManager | 48 class ASH_WM_COMMON_EXPORT DockedWindowLayoutManager |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 // Observers of dock bounds changes. | 307 // Observers of dock bounds changes. |
| 308 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; | 308 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; |
| 309 | 309 |
| 310 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); | 310 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 } // namespace ash | 313 } // namespace ash |
| 314 | 314 |
| 315 #endif // ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 315 #endif // ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| OLD | NEW |