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_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ |
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
11 #include "ash/wm/base_layout_manager.h" | 11 #include "ash/wm/base_layout_manager.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "ui/aura/layout_manager.h" | 14 #include "ui/aura/layout_manager.h" |
15 #include "ui/aura/root_window_observer.h" | 15 #include "ui/aura/root_window_observer.h" |
16 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
17 #include "ui/aura/window_observer.h" | 17 #include "ui/aura/window_observer.h" |
| 18 #include "ui/gfx/rect.h" |
18 | 19 |
19 namespace aura { | 20 namespace aura { |
20 class RootWindow; | 21 class RootWindow; |
21 class Window; | 22 class Window; |
22 } | 23 } |
23 | 24 |
24 namespace ui { | 25 namespace ui { |
25 class Layer; | 26 class Layer; |
26 } | 27 } |
27 | 28 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 95 |
95 WorkspaceManager2* workspace_manager(); | 96 WorkspaceManager2* workspace_manager(); |
96 | 97 |
97 aura::RootWindow* root_window_; | 98 aura::RootWindow* root_window_; |
98 | 99 |
99 Workspace2* workspace_; | 100 Workspace2* workspace_; |
100 | 101 |
101 // Set of windows we're listening to. | 102 // Set of windows we're listening to. |
102 WindowSet windows_; | 103 WindowSet windows_; |
103 | 104 |
| 105 // The work area. Cached to avoid unnecessarily moving windows during a |
| 106 // workspace switch. |
| 107 gfx::Rect work_area_; |
| 108 |
104 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager2); | 109 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager2); |
105 }; | 110 }; |
106 | 111 |
107 } // namespace internal | 112 } // namespace internal |
108 } // namespace ash | 113 } // namespace ash |
109 | 114 |
110 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ | 115 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ |
OLD | NEW |