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

Unified Diff: ash/wm/window_util.cc

Issue 9566014: Attempt 2: Allows tab dragging when maximized on aura. To fix it I made it so (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years, 10 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') | ash/wm/workspace/workspace_event_filter.cc » ('j') | 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 5976a388dd1afc63d6c2c9220de086554bcdb186..da0ebf0becae74b3433665d45cc32e76a16bdab9 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -51,6 +51,13 @@ aura::Window* GetActivatableWindow(aura::Window* window) {
return internal::ActivationController::GetActivatableWindow(window);
}
+bool IsWindowNormal(aura::Window* window) {
+ return window->GetProperty(aura::client::kShowStateKey) ==
+ ui::SHOW_STATE_NORMAL ||
+ window->GetProperty(aura::client::kShowStateKey) ==
+ ui::SHOW_STATE_DEFAULT;
+}
+
bool IsWindowMaximized(aura::Window* window) {
return window->GetProperty(aura::client::kShowStateKey) ==
ui::SHOW_STATE_MAXIMIZED;
« no previous file with comments | « ash/wm/window_util.h ('k') | ash/wm/workspace/workspace_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698