| 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_COMMON_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_COMMON_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/shelf/shelf_icon_observer.h" | |
| 13 #include "ash/shell_observer.h" | |
| 14 #include "ash/wm/common/shelf/wm_shelf_observer.h" | 12 #include "ash/wm/common/shelf/wm_shelf_observer.h" |
| 15 #include "ash/wm/common/window_state_observer.h" | 13 #include "ash/wm/common/window_state_observer.h" |
| 16 #include "ash/wm/common/wm_activation_observer.h" | 14 #include "ash/wm/common/wm_activation_observer.h" |
| 17 #include "ash/wm/common/wm_display_observer.h" | 15 #include "ash/wm/common/wm_display_observer.h" |
| 18 #include "ash/wm/common/wm_layout_manager.h" | 16 #include "ash/wm/common/wm_layout_manager.h" |
| 19 #include "ash/wm/common/wm_overview_mode_observer.h" | 17 #include "ash/wm/common/wm_overview_mode_observer.h" |
| 20 #include "ash/wm/common/wm_root_window_controller_observer.h" | 18 #include "ash/wm/common/wm_root_window_controller_observer.h" |
| 21 #include "ash/wm/common/wm_window_observer.h" | 19 #include "ash/wm/common/wm_window_observer.h" |
| 22 #include "ash/wm/common/wm_window_tracker.h" | 20 #include "ash/wm/common/wm_window_tracker.h" |
| 23 #include "base/compiler_specific.h" | 21 #include "base/compiler_specific.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 // workspace. It is associated with a specific container window (i.e. | 50 // workspace. It is associated with a specific container window (i.e. |
| 53 // kShellWindowId_PanelContainer) and controls the layout of any windows | 51 // kShellWindowId_PanelContainer) and controls the layout of any windows |
| 54 // added to that container. | 52 // added to that container. |
| 55 // | 53 // |
| 56 // The constructor takes a |panel_container| argument which is expected to set | 54 // The constructor takes a |panel_container| argument which is expected to set |
| 57 // its layout manager to this instance, e.g.: | 55 // its layout manager to this instance, e.g.: |
| 58 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container)); | 56 // panel_container->SetLayoutManager(new PanelLayoutManager(panel_container)); |
| 59 | 57 |
| 60 class ASH_EXPORT PanelLayoutManager | 58 class ASH_EXPORT PanelLayoutManager |
| 61 : public wm::WmLayoutManager, | 59 : public wm::WmLayoutManager, |
| 62 public ShelfIconObserver, | |
| 63 public wm::WindowStateObserver, | 60 public wm::WindowStateObserver, |
| 64 public wm::WmActivationObserver, | 61 public wm::WmActivationObserver, |
| 65 public wm::WmDisplayObserver, | 62 public wm::WmDisplayObserver, |
| 66 public wm::WmOverviewModeObserver, | 63 public wm::WmOverviewModeObserver, |
| 67 public wm::WmRootWindowControllerObserver, | 64 public wm::WmRootWindowControllerObserver, |
| 68 public wm::WmWindowObserver, | 65 public wm::WmWindowObserver, |
| 69 public keyboard::KeyboardControllerObserver, | 66 public keyboard::KeyboardControllerObserver, |
| 70 public wm::WmShelfObserver { | 67 public wm::WmShelfObserver { |
| 71 public: | 68 public: |
| 72 explicit PanelLayoutManager(wm::WmWindow* panel_container); | 69 explicit PanelLayoutManager(wm::WmWindow* panel_container); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // The last active panel. Used to maintain stacking order even if no panels | 204 // The last active panel. Used to maintain stacking order even if no panels |
| 208 // are currently focused. | 205 // are currently focused. |
| 209 wm::WmWindow* last_active_panel_; | 206 wm::WmWindow* last_active_panel_; |
| 210 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 207 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
| 211 | 208 |
| 212 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 209 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
| 213 }; | 210 }; |
| 214 | 211 |
| 215 } // namespace ash | 212 } // namespace ash |
| 216 | 213 |
| 217 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 214 #endif // ASH_WM_COMMON_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| OLD | NEW |