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

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: Merged and all that good stuff. 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
« no previous file with comments | « ash/wm/window_util.h ('k') | ash/wm/workspace/workspace.h » ('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 25e84f6db8c2fe3efa1b1a985029fb4a1b27fffe..055244d490b89c6775b64b460ec5e3c37aaa0050 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -14,6 +14,12 @@
namespace ash {
+namespace {
+
+const char kOpenWindowSplitKey[] = "OpenWindowSplit";
+
+} // namespace
+
void ActivateWindow(aura::Window* window) {
aura::client::GetActivationClient()->ActivateWindow(window);
}
@@ -64,5 +70,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
« no previous file with comments | « ash/wm/window_util.h ('k') | ash/wm/workspace/workspace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698