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

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

Issue 2617733002: Hide docked windows behind a flag (Closed)
Patch Set: Fix tests failed because of DCHECK Created 3 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 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 next to the status area. 54 // Enables the palette next to the status area.
55 const char kAshEnablePalette[] = "ash-enable-palette"; 55 const char kAshEnablePalette[] = "ash-enable-palette";
56 56
57 // Enables the palette on every display, instead of only the internal one. 57 // Enables the palette on every display, instead of only the internal one.
58 const char kAshEnablePaletteOnAllDisplays[] = 58 const char kAshEnablePaletteOnAllDisplays[] =
59 "ash-enable-palette-on-all-displays"; 59 "ash-enable-palette-on-all-displays";
60 60
61 // Enables docking windows to the right or left (not to be confused with snapped
62 // windows).
63 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows";
64
61 // Enables the observation of accelerometer events to enter touch-view mode. 65 // Enables the observation of accelerometer events to enter touch-view mode.
62 const char kAshEnableTouchView[] = "enable-touchview"; 66 const char kAshEnableTouchView[] = "enable-touchview";
63 67
64 // Enables mirrored screen. 68 // Enables mirrored screen.
65 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
66 70
67 // Enables touch view testing. 71 // Enables touch view testing.
68 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is 72 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is
69 // removed. 73 // removed.
70 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; 74 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing";
(...skipping 21 matching lines...) Expand all
92 96
93 // Constrains the pointer movement within a root window on desktop. 97 // Constrains the pointer movement within a root window on desktop.
94 bool ConstrainPointerToRoot() { 98 bool ConstrainPointerToRoot() {
95 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 99 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
96 100
97 return base::SysInfo::IsRunningOnChromeOS() || 101 return base::SysInfo::IsRunningOnChromeOS() ||
98 base::CommandLine::ForCurrentProcess()->HasSwitch( 102 base::CommandLine::ForCurrentProcess()->HasSwitch(
99 kAshConstrainPointerToRoot); 103 kAshConstrainPointerToRoot);
100 } 104 }
101 105
106 bool DockedWindowsEnabled() {
107 return base::CommandLine::ForCurrentProcess()->HasSwitch(
108 ash::switches::kAshEnableDockedWindows);
109 }
110
102 } // namespace switches 111 } // namespace switches
103 } // namespace ash 112 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698