| 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_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 6 #define ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 namespace views { | 30 namespace views { |
| 31 class Widget; | 31 class Widget; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace ash { | 34 namespace ash { |
| 35 class PanelCalloutWidget; | 35 class PanelCalloutWidget; |
| 36 class WmShelf; | 36 class WmShelf; |
| 37 | 37 |
| 38 namespace wm { | 38 namespace wm { |
| 39 class WmRootWindowController; | 39 class RootWindowController; |
| 40 } | 40 } |
| 41 | 41 |
| 42 // PanelLayoutManager is responsible for organizing panels within the | 42 // PanelLayoutManager is responsible for organizing panels within the |
| 43 // workspace. It is associated with a specific container window (i.e. | 43 // workspace. It is associated with a specific container window (i.e. |
| 44 // kShellWindowId_PanelContainer) and controls the layout of any windows | 44 // kShellWindowId_PanelContainer) and controls the layout of any windows |
| 45 // added to that container. | 45 // added to that container. |
| 46 // | 46 // |
| 47 // The constructor takes a |panel_container| argument which is expected to set | 47 // The constructor takes a |panel_container| argument which is expected to set |
| 48 // its layout manager to this instance, e.g.: | 48 // its layout manager to this instance, e.g.: |
| 49 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container)); | 49 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container)); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 // Update the callout arrows for all managed panels. | 163 // Update the callout arrows for all managed panels. |
| 164 void UpdateCallouts(); | 164 void UpdateCallouts(); |
| 165 | 165 |
| 166 // Overridden from keyboard::KeyboardControllerObserver: | 166 // Overridden from keyboard::KeyboardControllerObserver: |
| 167 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; | 167 void OnKeyboardBoundsChanging(const gfx::Rect& keyboard_bounds) override; |
| 168 void OnKeyboardClosed() override; | 168 void OnKeyboardClosed() override; |
| 169 | 169 |
| 170 // Parent window associated with this layout manager. | 170 // Parent window associated with this layout manager. |
| 171 WmWindow* panel_container_; | 171 WmWindow* panel_container_; |
| 172 | 172 |
| 173 WmRootWindowController* root_window_controller_; | 173 RootWindowController* root_window_controller_; |
| 174 | 174 |
| 175 // Protect against recursive calls to OnWindowAddedToLayout(). | 175 // Protect against recursive calls to OnWindowAddedToLayout(). |
| 176 bool in_add_window_; | 176 bool in_add_window_; |
| 177 // Protect against recursive calls to Relayout(). | 177 // Protect against recursive calls to Relayout(). |
| 178 bool in_layout_; | 178 bool in_layout_; |
| 179 // Indicates if the panel callout widget should be created. | 179 // Indicates if the panel callout widget should be created. |
| 180 bool show_callout_widgets_; | 180 bool show_callout_widgets_; |
| 181 // Ordered list of unowned pointers to panel windows. | 181 // Ordered list of unowned pointers to panel windows. |
| 182 PanelList panel_windows_; | 182 PanelList panel_windows_; |
| 183 // The panel being dragged. | 183 // The panel being dragged. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 194 // are currently focused. | 194 // are currently focused. |
| 195 WmWindow* last_active_panel_; | 195 WmWindow* last_active_panel_; |
| 196 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 196 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
| 197 | 197 |
| 198 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 198 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 } // namespace ash | 201 } // namespace ash |
| 202 | 202 |
| 203 #endif // ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 203 #endif // ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| OLD | NEW |