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_WORKSPACE2_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE2_H_ |
6 #define ASH_WM_WORKSPACE_WORKSPACE2_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE2_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 | 12 |
13 namespace aura { | 13 namespace aura { |
14 class Window; | 14 class Window; |
15 } | 15 } |
16 | 16 |
17 namespace gfx { | 17 namespace gfx { |
18 class Rect; | 18 class Rect; |
19 } | 19 } |
20 | 20 |
21 namespace ash { | 21 namespace ash { |
22 namespace internal { | 22 namespace internal { |
23 | 23 |
24 class WorkspaceEventFilter; | 24 class WorkspaceEventHandler; |
25 class WorkspaceManager2; | 25 class WorkspaceManager2; |
26 | 26 |
27 // Workspace is used to maintain either a single maximized windows (including | 27 // Workspace is used to maintain either a single maximized windows (including |
28 // transients and other windows) or any number of windows (for the | 28 // transients and other windows) or any number of windows (for the |
29 // desktop). Workspace is used by WorkspaceManager to manage a set of windows. | 29 // desktop). Workspace is used by WorkspaceManager to manage a set of windows. |
30 class ASH_EXPORT Workspace2 { | 30 class ASH_EXPORT Workspace2 { |
31 public: | 31 public: |
32 Workspace2(WorkspaceManager2* manager, | 32 Workspace2(WorkspaceManager2* manager, |
33 aura::Window* parent, | 33 aura::Window* parent, |
34 bool is_maximized); | 34 bool is_maximized); |
(...skipping 19 matching lines...) Expand all Loading... |
54 private: | 54 private: |
55 // Is this a workspace for maximized windows? | 55 // Is this a workspace for maximized windows? |
56 const bool is_maximized_; | 56 const bool is_maximized_; |
57 | 57 |
58 WorkspaceManager2* workspace_manager_; | 58 WorkspaceManager2* workspace_manager_; |
59 | 59 |
60 // Our Window, owned by |parent| passed to the constructor. | 60 // Our Window, owned by |parent| passed to the constructor. |
61 aura::Window* window_; | 61 aura::Window* window_; |
62 | 62 |
63 // Owned by |window_|. | 63 // Owned by |window_|. |
64 WorkspaceEventFilter* event_filter_; | 64 WorkspaceEventHandler* event_handler_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(Workspace2); | 66 DISALLOW_COPY_AND_ASSIGN(Workspace2); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace internal | 69 } // namespace internal |
70 } // namespace ash | 70 } // namespace ash |
71 | 71 |
72 #endif // ASH_WM_WORKSPACE_WORKSPACE2_H_ | 72 #endif // ASH_WM_WORKSPACE_WORKSPACE2_H_ |
OLD | NEW |