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

Unified Diff: ui/aura_shell/toplevel_window_event_filter.cc

Issue 8895003: Aura: Add --aura-laptop-mode to fill the workspace with a single window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maximize ALL the windows Created 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura_shell/toplevel_window_event_filter.cc
diff --git a/ui/aura_shell/toplevel_window_event_filter.cc b/ui/aura_shell/toplevel_window_event_filter.cc
index ccdde0f974eb15182c14f9e07997ebe2e78307b2..41063568aeb5a0372c8cc31961232575c04af9f6 100644
--- a/ui/aura_shell/toplevel_window_event_filter.cc
+++ b/ui/aura_shell/toplevel_window_event_filter.cc
@@ -127,8 +127,8 @@ bool IsBottomEdge(int window_component) {
void ToggleMaximizedState(aura::Window* window) {
window->SetIntProperty(aura::kShowStateKey,
- IsWindowMaximized(window) ? ui::SHOW_STATE_NORMAL
- : ui::SHOW_STATE_MAXIMIZED);
+ window_util::IsWindowMaximized(window) ?
+ ui::SHOW_STATE_NORMAL : ui::SHOW_STATE_MAXIMIZED);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698