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

Side by Side Diff: ash/common/ash_switches.cc

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: Rebase and fix 1 test Created 3 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 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/common/ash_switches.h" 5 #include "ash/common/ash_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; 48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list";
49 49
50 // Enables key bindings to scroll magnified screen. 50 // Enables key bindings to scroll magnified screen.
51 const char kAshEnableMagnifierKeyScroller[] = 51 const char kAshEnableMagnifierKeyScroller[] =
52 "ash-enable-magnifier-key-scroller"; 52 "ash-enable-magnifier-key-scroller";
53 53
54 // Enables the palette on every display, instead of only the internal one. 54 // Enables the palette on every display, instead of only the internal one.
55 const char kAshEnablePaletteOnAllDisplays[] = 55 const char kAshEnablePaletteOnAllDisplays[] =
56 "ash-enable-palette-on-all-displays"; 56 "ash-enable-palette-on-all-displays";
57 57
58 // Enables docking windows to the right or left (not to be confused with snapped
59 // windows).
60 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows";
61
62 // Enables the observation of accelerometer events to enter touch-view mode. 58 // Enables the observation of accelerometer events to enter touch-view mode.
63 const char kAshEnableTouchView[] = "enable-touchview"; 59 const char kAshEnableTouchView[] = "enable-touchview";
64 60
65 // Enables mirrored screen. 61 // Enables mirrored screen.
66 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
67 63
68 // Enables the palette next to the status area. 64 // Enables the palette next to the status area.
69 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; 65 const char kAshForceEnablePalette[] = "ash-force-enable-palette";
70 66
71 // Hides notifications that are irrelevant to Chrome OS device factory testing, 67 // Hides notifications that are irrelevant to Chrome OS device factory testing,
(...skipping 12 matching lines...) Expand all
84 80
85 // Constrains the pointer movement within a root window on desktop. 81 // Constrains the pointer movement within a root window on desktop.
86 bool ConstrainPointerToRoot() { 82 bool ConstrainPointerToRoot() {
87 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 83 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
88 84
89 return base::SysInfo::IsRunningOnChromeOS() || 85 return base::SysInfo::IsRunningOnChromeOS() ||
90 base::CommandLine::ForCurrentProcess()->HasSwitch( 86 base::CommandLine::ForCurrentProcess()->HasSwitch(
91 kAshConstrainPointerToRoot); 87 kAshConstrainPointerToRoot);
92 } 88 }
93 89
94 bool DockedWindowsEnabled() {
95 return base::CommandLine::ForCurrentProcess()->HasSwitch(
96 ash::switches::kAshEnableDockedWindows);
97 }
98
99 } // namespace switches 90 } // namespace switches
100 } // namespace ash 91 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698