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

Unified Diff: ui/aura_shell/window_util.cc

Issue 8755003: Maximize windows when double clicking their title bar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« ui/aura/test/event_generator.cc ('K') | « ui/aura_shell/window_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/window_util.cc
===================================================================
--- ui/aura_shell/window_util.cc (revision 0)
+++ ui/aura_shell/window_util.cc (revision 0)
@@ -0,0 +1,18 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/aura_shell/window_util.h"
+
+#include "ui/aura/window.h"
+#include "ui/aura/client/aura_constants.h"
+#include "ui/base/ui_base_types.h"
+
+namespace aura_shell {
+
+bool IsWindowMaximized(aura::Window* window) {
+ return window->GetIntProperty(aura::kShowStateKey) ==
+ ui::SHOW_STATE_MAXIMIZED;
+}
+
+} // namespace aura_shell
Property changes on: ui\aura_shell\window_util.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« ui/aura/test/event_generator.cc ('K') | « ui/aura_shell/window_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698