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

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

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: oshima + mfomitchev comments Created 3 years, 9 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 kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; 51 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list";
52 52
53 // Enables key bindings to scroll magnified screen. 53 // Enables key bindings to scroll magnified screen.
54 const char kAshEnableMagnifierKeyScroller[] = 54 const char kAshEnableMagnifierKeyScroller[] =
55 "ash-enable-magnifier-key-scroller"; 55 "ash-enable-magnifier-key-scroller";
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
65 // Enables the observation of accelerometer events to enter touch-view mode. 61 // Enables the observation of accelerometer events to enter touch-view mode.
66 const char kAshEnableTouchView[] = "enable-touchview"; 62 const char kAshEnableTouchView[] = "enable-touchview";
67 63
68 // Enables mirrored screen. 64 // Enables mirrored screen.
69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 65 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
70 66
71 // Enables the palette next to the status area. 67 // Enables the palette next to the status area.
72 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; 68 const char kAshForceEnablePalette[] = "ash-force-enable-palette";
73 69
74 // Hides notifications that are irrelevant to Chrome OS device factory testing, 70 // Hides notifications that are irrelevant to Chrome OS device factory testing,
(...skipping 21 matching lines...) Expand all
96 92
97 // Constrains the pointer movement within a root window on desktop. 93 // Constrains the pointer movement within a root window on desktop.
98 bool ConstrainPointerToRoot() { 94 bool ConstrainPointerToRoot() {
99 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 95 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
100 96
101 return base::SysInfo::IsRunningOnChromeOS() || 97 return base::SysInfo::IsRunningOnChromeOS() ||
102 base::CommandLine::ForCurrentProcess()->HasSwitch( 98 base::CommandLine::ForCurrentProcess()->HasSwitch(
103 kAshConstrainPointerToRoot); 99 kAshConstrainPointerToRoot);
104 } 100 }
105 101
106 bool DockedWindowsEnabled() {
107 return base::CommandLine::ForCurrentProcess()->HasSwitch(
108 ash::switches::kAshEnableDockedWindows);
109 }
110
111 } // namespace switches 102 } // namespace switches
112 } // namespace ash 103 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698