OLD | NEW |
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Enables docking windows to the right or left (not to be confused with snapped | 61 // Enables docking windows to the right or left (not to be confused with snapped |
62 // windows). | 62 // windows). |
63 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; | 63 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows"; |
64 | 64 |
65 // Enables the observation of accelerometer events to enter touch-view mode. | 65 // Enables the observation of accelerometer events to enter touch-view mode. |
66 const char kAshEnableTouchView[] = "enable-touchview"; | 66 const char kAshEnableTouchView[] = "enable-touchview"; |
67 | 67 |
68 // Enables mirrored screen. | 68 // Enables mirrored screen. |
69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
70 | 70 |
71 // Enables touch view testing. | |
72 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is | |
73 // removed. | |
74 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; | |
75 | |
76 // Hides notifications that are irrelevant to Chrome OS device factory testing, | 71 // Hides notifications that are irrelevant to Chrome OS device factory testing, |
77 // such as battery level updates. | 72 // such as battery level updates. |
78 const char kAshHideNotificationsForFactory[] = | 73 const char kAshHideNotificationsForFactory[] = |
79 "ash-hide-notifications-for-factory"; | 74 "ash-hide-notifications-for-factory"; |
80 | 75 |
81 // Specifies if Material Design elements in Chrome OS system UI are enabled. | 76 // Specifies if Material Design elements in Chrome OS system UI are enabled. |
82 // Can be disabled / enabled / experimental allowing to launch incrementally. | 77 // Can be disabled / enabled / experimental allowing to launch incrementally. |
83 const char kAshMaterialDesign[] = "ash-md"; | 78 const char kAshMaterialDesign[] = "ash-md"; |
84 const char kAshMaterialDesignDisabled[] = "disabled"; | 79 const char kAshMaterialDesignDisabled[] = "disabled"; |
85 const char kAshMaterialDesignEnabled[] = "enabled"; | 80 const char kAshMaterialDesignEnabled[] = "enabled"; |
(...skipping 17 matching lines...) Expand all Loading... |
103 kAshConstrainPointerToRoot); | 98 kAshConstrainPointerToRoot); |
104 } | 99 } |
105 | 100 |
106 bool DockedWindowsEnabled() { | 101 bool DockedWindowsEnabled() { |
107 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 102 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
108 ash::switches::kAshEnableDockedWindows); | 103 ash::switches::kAshEnableDockedWindows); |
109 } | 104 } |
110 | 105 |
111 } // namespace switches | 106 } // namespace switches |
112 } // namespace ash | 107 } // namespace ash |
OLD | NEW |