summaryrefslogtreecommitdiffstats
path: root/ash/ash_switches.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/ash_switches.cc')
-rw-r--r--ash/ash_switches.cc44
1 files changed, 44 insertions, 0 deletions
diff --git a/ash/ash_switches.cc b/ash/ash_switches.cc
new file mode 100644
index 0000000..21afae7
--- /dev/null
+++ b/ash/ash_switches.cc
@@ -0,0 +1,44 @@
+// 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 "ash/ash_switches.h"
+
+#include <string>
+
+#include "base/command_line.h"
+
+namespace aura_shell {
+namespace switches {
+
+// Avoid drawing drop shadows under windows.
+const char kAuraNoShadows[] = "aura-no-shadows";
+
+// Use Aura-style translucent window frame.
+const char kAuraTranslucentFrames[] = "aura-translucent-frames";
+
+// Use views-based app list.
+const char kAuraViewsAppList[] = "aura-views-applist";
+
+// Use a custom window style, e.g. --aura-window-mode=compact.
+// When this flag is not passed we default to "normal" mode.
+const char kAuraWindowMode[] = "aura-window-mode";
+
+// Show only a single maximized window, like traditional non-Aura builds.
+// Useful for low-resolution screens, such as on laptops.
+const char kAuraWindowModeCompact[] = "compact";
+
+// Default window management with multiple draggable windows.
+const char kAuraWindowModeNormal[] = "normal";
+
+// Use Aura-style workspace window dragging and sizing.
+const char kAuraWorkspaceManager[] = "aura-workspace-manager";
+
+bool IsAuraWindowModeCompact() {
+ std::string mode = CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kAuraWindowMode);
+ return mode == switches::kAuraWindowModeCompact;
+}
+
+} // namespace switches
+} // namespace aura_shell