OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_STATE_H_ | 5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_STATE_H_ |
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_STATE_H_ | 6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_STATE_H_ |
7 | 7 |
8 #include "ash/wm/window_state.h" | 8 #include "ash/wm/window_state.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace internal { | |
12 class MaximizeModeWindowManager; | 11 class MaximizeModeWindowManager; |
13 | 12 |
14 // The MaximizeModeWindowState implementation which reduces all possible window | 13 // The MaximizeModeWindowState implementation which reduces all possible window |
15 // states to minimized and maximized. If a window cannot be maximized it will be | 14 // states to minimized and maximized. If a window cannot be maximized it will be |
16 // set to normal. If a window cannot fill the entire workspace it will be | 15 // set to normal. If a window cannot fill the entire workspace it will be |
17 // centered within the workspace. | 16 // centered within the workspace. |
18 class MaximizeModeWindowState : public wm::WindowState::State { | 17 class MaximizeModeWindowState : public wm::WindowState::State { |
19 public: | 18 public: |
20 // Called when the window position might need to be updated. | 19 // Called when the window position might need to be updated. |
21 static void UpdateWindowPosition(wm::WindowState* window_state, | 20 static void UpdateWindowPosition(wm::WindowState* window_state, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // The creator which needs to be informed when this state goes away. | 54 // The creator which needs to be informed when this state goes away. |
56 MaximizeModeWindowManager* creator_; | 55 MaximizeModeWindowManager* creator_; |
57 | 56 |
58 // The current state type. Due to the nature of this state, this can only be | 57 // The current state type. Due to the nature of this state, this can only be |
59 // WM_STATE_TYPE{NORMAL, MINIMIZED, MAXIMIZED}. | 58 // WM_STATE_TYPE{NORMAL, MINIMIZED, MAXIMIZED}. |
60 wm::WindowStateType current_state_type_; | 59 wm::WindowStateType current_state_type_; |
61 | 60 |
62 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowState); | 61 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowState); |
63 }; | 62 }; |
64 | 63 |
65 } // namespace internal | |
66 } // namespace ash | 64 } // namespace ash |
67 | 65 |
68 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_STATE_H_ | 66 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_STATE_H_ |
OLD | NEW |