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 #include <memory> |
9 | 10 |
10 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
11 #include "ash/display/window_tree_host_manager.h" | 12 #include "ash/display/window_tree_host_manager.h" |
12 #include "ash/shelf/shelf_icon_observer.h" | 13 #include "ash/shelf/shelf_icon_observer.h" |
13 #include "ash/shelf/shelf_layout_manager_observer.h" | 14 #include "ash/shelf/shelf_layout_manager_observer.h" |
14 #include "ash/shell_observer.h" | 15 #include "ash/shell_observer.h" |
15 #include "ash/wm/window_state_observer.h" | 16 #include "ash/wm/window_state_observer.h" |
16 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
17 #include "base/macros.h" | 18 #include "base/macros.h" |
18 #include "base/memory/scoped_ptr.h" | |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "ui/aura/layout_manager.h" | 20 #include "ui/aura/layout_manager.h" |
21 #include "ui/aura/window_observer.h" | 21 #include "ui/aura/window_observer.h" |
22 #include "ui/keyboard/keyboard_controller.h" | 22 #include "ui/keyboard/keyboard_controller.h" |
23 #include "ui/keyboard/keyboard_controller_observer.h" | 23 #include "ui/keyboard/keyboard_controller_observer.h" |
24 #include "ui/wm/public/activation_change_observer.h" | 24 #include "ui/wm/public/activation_change_observer.h" |
25 | 25 |
26 namespace aura { | 26 namespace aura { |
27 class Window; | 27 class Window; |
28 class WindowTracker; | 28 class WindowTracker; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // The panel being dragged. | 180 // The panel being dragged. |
181 aura::Window* dragged_panel_; | 181 aura::Window* dragged_panel_; |
182 // The shelf we are observing for shelf icon changes. | 182 // The shelf we are observing for shelf icon changes. |
183 Shelf* shelf_; | 183 Shelf* shelf_; |
184 // The shelf layout manager being observed for visibility changes. | 184 // The shelf layout manager being observed for visibility changes. |
185 ShelfLayoutManager* shelf_layout_manager_; | 185 ShelfLayoutManager* shelf_layout_manager_; |
186 | 186 |
187 // When not NULL, the shelf is hidden (i.e. full screen) and this tracks the | 187 // When not NULL, the shelf is hidden (i.e. full screen) and this tracks the |
188 // set of panel windows which have been temporarily hidden and need to be | 188 // set of panel windows which have been temporarily hidden and need to be |
189 // restored when the shelf becomes visible again. | 189 // restored when the shelf becomes visible again. |
190 scoped_ptr<aura::WindowTracker> restore_windows_on_shelf_visible_; | 190 std::unique_ptr<aura::WindowTracker> restore_windows_on_shelf_visible_; |
191 | 191 |
192 // The last active panel. Used to maintain stacking order even if no panels | 192 // The last active panel. Used to maintain stacking order even if no panels |
193 // are currently focused. | 193 // are currently focused. |
194 aura::Window* last_active_panel_; | 194 aura::Window* last_active_panel_; |
195 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 195 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
196 | 196 |
197 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 197 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
198 }; | 198 }; |
199 | 199 |
200 } // namespace ash | 200 } // namespace ash |
201 | 201 |
202 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 202 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
OLD | NEW |