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 #include "ui/gfx/rect.h" |
19 | 19 |
20 namespace aura { | 20 namespace aura { |
21 class RootWindow; | 21 class RootWindow; |
22 class Window; | 22 class Window; |
23 } | 23 } |
24 | 24 |
25 namespace ui { | 25 namespace ui { |
26 class Layer; | 26 class Layer; |
27 } | 27 } |
28 | 28 |
29 namespace ash { | 29 namespace ash { |
| 30 |
| 31 // We force at least this many DIPs for any window on the screen. |
| 32 const int kMinimumOnScreenArea = 10; |
| 33 |
30 namespace internal { | 34 namespace internal { |
31 | 35 |
32 class Workspace2; | 36 class Workspace2; |
33 class WorkspaceManager2; | 37 class WorkspaceManager2; |
34 | 38 |
35 // LayoutManager used on the window created for a Workspace. | 39 // LayoutManager used on the window created for a Workspace. |
36 // TODO(sky): this code shares a fair amount of similarities with | 40 // TODO(sky): this code shares a fair amount of similarities with |
37 // BaseLayoutManager, yet its different enough that subclassing is painful. | 41 // BaseLayoutManager, yet its different enough that subclassing is painful. |
38 // See if I can refactor the code to make it easier to share common bits. | 42 // See if I can refactor the code to make it easier to share common bits. |
39 class ASH_EXPORT WorkspaceLayoutManager2 | 43 class ASH_EXPORT WorkspaceLayoutManager2 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // workspace switch. | 122 // workspace switch. |
119 gfx::Rect work_area_; | 123 gfx::Rect work_area_; |
120 | 124 |
121 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager2); | 125 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager2); |
122 }; | 126 }; |
123 | 127 |
124 } // namespace internal | 128 } // namespace internal |
125 } // namespace ash | 129 } // namespace ash |
126 | 130 |
127 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ | 131 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ |
OLD | NEW |