| 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_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_H_ |
| 6 #define ASH_WM_WORKSPACE_WORKSPACE_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 WorkspaceManager* workspace_manager() { return workspace_manager_; } | 56 WorkspaceManager* workspace_manager() { return workspace_manager_; } |
| 57 | 57 |
| 58 // Returns true if the Workspace should be moved to pending. This is true | 58 // Returns true if the Workspace should be moved to pending. This is true |
| 59 // if there are no visible maximized windows. | 59 // if there are no visible maximized windows. |
| 60 bool ShouldMoveToPending() const; | 60 bool ShouldMoveToPending() const; |
| 61 | 61 |
| 62 // Returns the number of maximized windows (including minimized windows that | 62 // Returns the number of maximized windows (including minimized windows that |
| 63 // would be maximized on restore). This does not consider visibility. | 63 // would be maximized on restore). This does not consider visibility. |
| 64 int GetNumMaximizedWindows() const; | 64 int GetNumMaximizedWindows() const; |
| 65 | 65 |
| 66 // Returns true if any window in the workspace is in immersive mode. Merely |
| 67 // checking the active window is not sufficient, as the active window may be |
| 68 // a dialog, panel, etc. |
| 69 bool IsImmersiveMode() const; |
| 70 |
| 66 private: | 71 private: |
| 67 // Is this a workspace for maximized windows? | 72 // Is this a workspace for maximized windows? |
| 68 const bool is_maximized_; | 73 const bool is_maximized_; |
| 69 | 74 |
| 70 WorkspaceManager* workspace_manager_; | 75 WorkspaceManager* workspace_manager_; |
| 71 | 76 |
| 72 // Our Window, owned by |parent| passed to the constructor. | 77 // Our Window, owned by |parent| passed to the constructor. |
| 73 aura::Window* window_; | 78 aura::Window* window_; |
| 74 | 79 |
| 75 scoped_ptr<WorkspaceEventHandler> event_handler_; | 80 scoped_ptr<WorkspaceEventHandler> event_handler_; |
| 76 | 81 |
| 77 WorkspaceLayoutManager* workspace_layout_manager_; | 82 WorkspaceLayoutManager* workspace_layout_manager_; |
| 78 | 83 |
| 79 DISALLOW_COPY_AND_ASSIGN(Workspace); | 84 DISALLOW_COPY_AND_ASSIGN(Workspace); |
| 80 }; | 85 }; |
| 81 | 86 |
| 82 } // namespace internal | 87 } // namespace internal |
| 83 } // namespace ash | 88 } // namespace ash |
| 84 | 89 |
| 85 #endif // ASH_WM_WORKSPACE_WORKSPACE_H_ | 90 #endif // ASH_WM_WORKSPACE_WORKSPACE_H_ |
| OLD | NEW |