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

Unified Diff: ash/wm/window_util.cc

Issue 9113045: Reworks the workspace code. Here's the new heuristics: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated feedback and fixed bugs Created 8 years, 11 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 c402ef255bf9ada8b5d1cdaac8798d0f2e976c3c..60537db6cbb7a54c6a6a9127d5f48416ec0c9ee9 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -14,6 +14,8 @@
namespace ash {
+static const char kOpenWindowSplitKey[] = "OpenWindowSplit";
oshima 2012/01/26 16:37:25 move this to anonymous namespace.
+
void ActivateWindow(aura::Window* window) {
aura::client::GetActivationClient()->ActivateWindow(window);
}
@@ -56,5 +58,13 @@ bool HasFullscreenWindow(const WindowSet& windows) {
return false;
}
+void SetOpenWindowSplit(aura::Window* window, bool value) {
+ window->SetIntProperty(kOpenWindowSplitKey, value ? 1 : 0);
+}
+
+bool GetOpenWindowSplit(aura::Window* window) {
+ return window->GetIntProperty(kOpenWindowSplitKey) == 1;
+}
+
} // namespace window_util
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698