| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PANELS_PANEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 namespace gfx { | 30 namespace gfx { |
| 31 class Rect; | 31 class Rect; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace views { | 34 namespace views { |
| 35 class Widget; | 35 class Widget; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace ash { | 38 namespace ash { |
| 39 class PanelCalloutWidget; |
| 39 class Shelf; | 40 class Shelf; |
| 40 | |
| 41 namespace internal { | |
| 42 class PanelCalloutWidget; | |
| 43 class ShelfLayoutManager; | 41 class ShelfLayoutManager; |
| 44 | 42 |
| 45 // PanelLayoutManager is responsible for organizing panels within the | 43 // PanelLayoutManager is responsible for organizing panels within the |
| 46 // workspace. It is associated with a specific container window (i.e. | 44 // workspace. It is associated with a specific container window (i.e. |
| 47 // kShellWindowId_PanelContainer) and controls the layout of any windows | 45 // kShellWindowId_PanelContainer) and controls the layout of any windows |
| 48 // added to that container. | 46 // added to that container. |
| 49 // | 47 // |
| 50 // The constructor takes a |panel_container| argument which is expected to set | 48 // The constructor takes a |panel_container| argument which is expected to set |
| 51 // its layout manager to this instance, e.g.: | 49 // its layout manager to this instance, e.g.: |
| 52 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container)); | 50 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container)); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 scoped_ptr<aura::WindowTracker> restore_windows_on_shelf_visible_; | 177 scoped_ptr<aura::WindowTracker> restore_windows_on_shelf_visible_; |
| 180 | 178 |
| 181 // The last active panel. Used to maintain stacking order even if no panels | 179 // The last active panel. Used to maintain stacking order even if no panels |
| 182 // are currently focused. | 180 // are currently focused. |
| 183 aura::Window* last_active_panel_; | 181 aura::Window* last_active_panel_; |
| 184 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 182 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
| 185 | 183 |
| 186 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 184 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
| 187 }; | 185 }; |
| 188 | 186 |
| 189 } // namespace internal | |
| 190 } // namespace ash | 187 } // namespace ash |
| 191 | 188 |
| 192 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 189 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| OLD | NEW |