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

Unified Diff: ash/wm/window_util.cc

Issue 10914231: Map fullscreen button to maximize (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix unit test Created 8 years, 3 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_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index cfbacdce8ce6279a66c84cbb283e823adad6ff3c..74c970f631ac85b13238c3bb52e1a8e537617d2c 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -61,6 +61,10 @@ bool CanActivateWindow(aura::Window* window) {
return client && client->CanActivateWindow(window);
}
+bool CanMaximizeWindow(aura::Window* window) {
+ return window->GetProperty(aura::client::kCanMaximizeKey);
+}
+
bool IsWindowNormal(aura::Window* window) {
return IsWindowStateNormal(window->GetProperty(aura::client::kShowStateKey));
}

Powered by Google App Engine
This is Rietveld 408576698