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

Side by Side Diff: ash/common/wm/window_state.h

Issue 2563343002: Remove extension_misc::IsImeMenuExtensionId. (Closed)
Patch Set: Remove kExcludeFromMruKey. Created 4 years 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
« no previous file with comments | « ash/common/wm/mru_window_tracker_unittest.cc ('k') | ash/common/wm/window_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_COMMON_WM_WINDOW_STATE_H_ 5 #ifndef ASH_COMMON_WM_WINDOW_STATE_H_
6 #define ASH_COMMON_WM_WINDOW_STATE_H_ 6 #define ASH_COMMON_WM_WINDOW_STATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 bool IsNormalStateType() const; 107 bool IsNormalStateType() const;
108 108
109 bool IsNormalOrSnapped() const; 109 bool IsNormalOrSnapped() const;
110 110
111 bool IsActive() const; 111 bool IsActive() const;
112 bool IsDocked() const; 112 bool IsDocked() const;
113 113
114 // Returns true if the window's location can be controlled by the user. 114 // Returns true if the window's location can be controlled by the user.
115 bool IsUserPositionable() const; 115 bool IsUserPositionable() const;
116 116
117 // Returns true is the window should be excluded from the most recently used
118 // windows list.
119 bool ShouldBeExcludedFromMru() const;
120
121 // Checks if the window can change its state accordingly. 117 // Checks if the window can change its state accordingly.
122 bool CanMaximize() const; 118 bool CanMaximize() const;
123 bool CanMinimize() const; 119 bool CanMinimize() const;
124 bool CanResize() const; 120 bool CanResize() const;
125 bool CanSnap() const; 121 bool CanSnap() const;
126 bool CanActivate() const; 122 bool CanActivate() const;
127 123
128 // Returns true if the window has restore bounds. 124 // Returns true if the window has restore bounds.
129 bool HasRestoreBounds() const; 125 bool HasRestoreBounds() const;
130 126
131 // These methods use aura::WindowProperty to change the window's state 127 // These methods use aura::WindowProperty to change the window's state
132 // instead of using WMEvent directly. This is to use the same mechanism as 128 // instead of using WMEvent directly. This is to use the same mechanism as
133 // what views::Widget is using. 129 // what views::Widget is using.
134 void Maximize(); 130 void Maximize();
135 void Minimize(); 131 void Minimize();
136 void Unminimize(); 132 void Unminimize();
137 void SetExcludedFromMru(bool excluded_from_mru);
138 133
139 void Activate(); 134 void Activate();
140 void Deactivate(); 135 void Deactivate();
141 136
142 // Set the window state to normal. 137 // Set the window state to normal.
143 // TODO(oshima): Change to use RESTORE event. 138 // TODO(oshima): Change to use RESTORE event.
144 void Restore(); 139 void Restore();
145 140
146 // Caches, then disables always on top state and then stacks |window_| below 141 // Caches, then disables always on top state and then stacks |window_| below
147 // |window_on_top| if a |window_| is currently in always on top state. 142 // |window_on_top| if a |window_| is currently in always on top state.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 387
393 std::unique_ptr<State> current_state_; 388 std::unique_ptr<State> current_state_;
394 389
395 DISALLOW_COPY_AND_ASSIGN(WindowState); 390 DISALLOW_COPY_AND_ASSIGN(WindowState);
396 }; 391 };
397 392
398 } // namespace wm 393 } // namespace wm
399 } // namespace ash 394 } // namespace ash
400 395
401 #endif // ASH_COMMON_WM_WINDOW_STATE_H_ 396 #endif // ASH_COMMON_WM_WINDOW_STATE_H_
OLDNEW
« no previous file with comments | « ash/common/wm/mru_window_tracker_unittest.cc ('k') | ash/common/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698