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

Unified Diff: ash/wm/window_util.cc

Issue 1157843009: Added wm::IsWindowUserPositionable(...) method in window_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated callsites to use WindowState::IsUserPositionable(). 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
« no previous file with comments | « ash/wm/window_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index e05ae2fb3bbe6990e6a78893a0e0414384610251..a0fb399314fe86188a1edd59ab76789503e4ae0e 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -77,6 +77,10 @@ bool IsWindowMinimized(aura::Window* window) {
return ash::wm::GetWindowState(window)->IsMinimized();
}
+bool IsWindowUserPositionable(aura::Window* window) {
+ return GetWindowState(window)->IsUserPositionable();
+}
+
void CenterWindow(aura::Window* window) {
wm::WMEvent event(wm::WM_EVENT_CENTER);
wm::GetWindowState(window)->OnWMEvent(&event);
« no previous file with comments | « ash/wm/window_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698