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

Side by Side Diff: ash/ash_switches.cc

Issue 1107733006: Unified Desktop: hook up ash to allow unified desktop mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/ash_switches.h" 5 #include "ash/ash_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sys_info.h"
8 9
9 namespace ash { 10 namespace ash {
10 namespace switches { 11 namespace switches {
11 12
12 // Enables an animated transition from the boot splash screen (Chrome logo on a 13 // Enables an animated transition from the boot splash screen (Chrome logo on a
13 // white background) to the login screen. Implies 14 // white background) to the login screen. Implies
14 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in 15 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in
15 // conjunction with |kDisableBootAnimation| (since the transition begins at the 16 // conjunction with |kDisableBootAnimation| (since the transition begins at the
16 // same time as the white/grayscale login screen animation). 17 // same time as the white/grayscale login screen animation).
17 const char kAshAnimateFromBootSplashScreen[] = 18 const char kAshAnimateFromBootSplashScreen[] =
18 "ash-animate-from-boot-splash-screen"; 19 "ash-animate-from-boot-splash-screen";
19 20
20 // Constrains the pointer movement within a root window on desktop.
21 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
22
23 // Copies the host window's content to the system background layer at startup. 21 // Copies the host window's content to the system background layer at startup.
24 // Can make boot slightly slower, but also hides an even-longer awkward period 22 // Can make boot slightly slower, but also hides an even-longer awkward period
25 // where we display a white background if the login wallpaper takes a long time 23 // where we display a white background if the login wallpaper takes a long time
26 // to load. 24 // to load.
27 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot"; 25 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot";
28 26
29 // Enable keyboard shortcuts useful for debugging. 27 // Enable keyboard shortcuts useful for debugging.
30 const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; 28 const char kAshDebugShortcuts[] = "ash-debug-shortcuts";
31 29
32 // Disables LockLayoutManager used for LockScreenContainer, return back to 30 // Disables LockLayoutManager used for LockScreenContainer, return back to
(...skipping 16 matching lines...) Expand all
49 const char kAshDisableTouchExplorationMode[] = 47 const char kAshDisableTouchExplorationMode[] =
50 "ash-disable-touch-exploration-mode"; 48 "ash-disable-touch-exploration-mode";
51 49
52 #if defined(OS_CHROMEOS) 50 #if defined(OS_CHROMEOS)
53 // Enables fullscreen app list if Ash is in maximize mode. 51 // Enables fullscreen app list if Ash is in maximize mode.
54 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; 52 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list";
55 53
56 // Enables key bindings to scroll magnified screen. 54 // Enables key bindings to scroll magnified screen.
57 const char kAshEnableMagnifierKeyScroller[] = 55 const char kAshEnableMagnifierKeyScroller[] =
58 "ash-enable-magnifier-key-scroller"; 56 "ash-enable-magnifier-key-scroller";
57
59 #endif 58 #endif
60 59
61 // Enables mirrored screen. 60 // Enables mirrored screen.
62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 61 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
63 62
64 // Enables quick, non-cancellable locking of the screen when in maximize mode. 63 // Enables quick, non-cancellable locking of the screen when in maximize mode.
65 const char kAshEnablePowerButtonQuickLock[] = 64 const char kAshEnablePowerButtonQuickLock[] =
66 "ash-enable-power-button-quick-lock"; 65 "ash-enable-power-button-quick-lock";
67 66
68 // Specifies the screen rotation animation to use. Possible values are: 67 // Specifies the screen rotation animation to use. Possible values are:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // instead of displaying an interactive animation. 114 // instead of displaying an interactive animation.
116 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 115 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
117 116
118 #if defined(OS_WIN) 117 #if defined(OS_WIN)
119 // Force Ash to open its root window on the desktop, even on Windows 8 where 118 // Force Ash to open its root window on the desktop, even on Windows 8 where
120 // it would normally end up in metro. 119 // it would normally end up in metro.
121 const char kForceAshToDesktop[] = "ash-force-desktop"; 120 const char kForceAshToDesktop[] = "ash-force-desktop";
122 121
123 #endif 122 #endif
124 123
124 #if defined(OS_CHROMEOS)
125 // Constrains the pointer movement within a root window on desktop.
126 bool ConstrainPointerToRoot() {
127 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
128
129 return base::SysInfo::IsRunningOnChromeOS() ||
130 base::CommandLine::ForCurrentProcess()->HasSwitch(
131 kAshConstrainPointerToRoot);
132 }
133
134 // Enables unified desktop mode.
135 bool UnifiedDesktopEnabled() {
136 const char kAshEnableUnifiedDesktop[] = "ash-enable-unified-desktop";
137 return base::CommandLine::ForCurrentProcess()->HasSwitch(
138 kAshEnableUnifiedDesktop);
139 }
140
141 #endif
142
125 } // namespace switches 143 } // namespace switches
126 } // namespace ash 144 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698