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

Unified Diff: ash/wm/window_state.cc

Issue 1157843009: Added wm::IsWindowUserPositionable(...) method in window_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added WindowState::IsUserPositionable() method. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 94335cc0f02c526c17980cdc7272b46a82238d8c..bf6bc2253a91e7075cc17db9491bfc4c6b994501 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -143,6 +143,11 @@ bool WindowState::IsDocked() const {
GetStateType() == WINDOW_STATE_TYPE_DOCKED_MINIMIZED;
}
+bool WindowState::IsUserPositionable() const {
+ return (window()->type() == ui::wm::WINDOW_TYPE_NORMAL ||
+ window()->type() == ui::wm::WINDOW_TYPE_PANEL);
+}
+
bool WindowState::CanMaximize() const {
// Window must have the kCanMaximizeKey and have no maximum width or height.
if (!window()->GetProperty(aura::client::kCanMaximizeKey))

Powered by Google App Engine
This is Rietveld 408576698