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

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

Issue 2506493002: Add a switch for tablet power button behavior (Closed)
Patch Set: Created 4 years, 1 month 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 next to the status area. 57 // Enables the palette next to the status area.
58 const char kAshEnablePalette[] = "ash-enable-palette"; 58 const char kAshEnablePalette[] = "ash-enable-palette";
59 59
60 // Enables the palette on every display, instead of only the internal one. 60 // Enables the palette on every display, instead of only the internal one.
61 const char kAshEnablePaletteOnAllDisplays[] = 61 const char kAshEnablePaletteOnAllDisplays[] =
62 "ash-enable-palette-on-all-displays"; 62 "ash-enable-palette-on-all-displays";
63 63
64 // Enables tablet power button behavior for convertible/tablet devices.
65 // TODO(warx): Enable or remove this switch once crbug.com/633304 is fully
66 // finished.
67 const char kAshEnableTabletPowerButton[] = "enable-tablet-power-button";
Daniel Erat 2016/11/15 15:10:42 this should probably be ash-enable-tablet-power-bu
Qiang(Joe) Xu 2016/11/15 17:29:09 yes.. changed. I didn't change enable-touchview in
64 #endif 68 #endif
65 69
66 // Enables the observation of accelerometer events to enter touch-view mode. 70 // Enables the observation of accelerometer events to enter touch-view mode.
67 const char kAshEnableTouchView[] = "enable-touchview"; 71 const char kAshEnableTouchView[] = "enable-touchview";
68 72
69 // Enables mirrored screen. 73 // Enables mirrored screen.
70 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 74 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
71 75
72 // Enables touch view testing. 76 // Enables touch view testing.
73 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is 77 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is
(...skipping 28 matching lines...) Expand all
102 106
103 return base::SysInfo::IsRunningOnChromeOS() || 107 return base::SysInfo::IsRunningOnChromeOS() ||
104 base::CommandLine::ForCurrentProcess()->HasSwitch( 108 base::CommandLine::ForCurrentProcess()->HasSwitch(
105 kAshConstrainPointerToRoot); 109 kAshConstrainPointerToRoot);
106 } 110 }
107 111
108 #endif 112 #endif
109 113
110 } // namespace switches 114 } // namespace switches
111 } // namespace ash 115 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698