Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_state.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698