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

Side by Side Diff: ash/ash_switches.cc

Issue 2837773003: Flip the flag to enable smooth screen rotation by default. (Closed)
Patch Set: Add comments how the test will work. Created 3 years, 7 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
« no previous file with comments | « ash/ash_switches.h ('k') | ash/rotator/screen_rotation_animator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ash_switches.h" 5 #include "ash/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 // Enables the palette on every display, instead of only the internal one. 51 // Enables the palette on every display, instead of only the internal one.
52 const char kAshEnablePaletteOnAllDisplays[] = 52 const char kAshEnablePaletteOnAllDisplays[] =
53 "ash-enable-palette-on-all-displays"; 53 "ash-enable-palette-on-all-displays";
54 54
55 // Enables the observation of accelerometer events to enter touch-view mode. 55 // Enables the observation of accelerometer events to enter touch-view mode.
56 const char kAshEnableTouchView[] = "enable-touchview"; 56 const char kAshEnableTouchView[] = "enable-touchview";
57 57
58 // Enables mirrored screen. 58 // Enables mirrored screen.
59 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 59 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
60 60
61 // Enables a smoother animation for screen rotation. 61 // Disables a smoother animation for screen rotation.
62 const char kAshEnableSmoothScreenRotation[] = 62 const char kAshDisableSmoothScreenRotation[] =
63 "ash-enable-smooth-screen-rotation"; 63 "ash-disable-smooth-screen-rotation";
64 64
65 // Specifies the estimated time (in milliseconds) from VSYNC event until when 65 // Specifies the estimated time (in milliseconds) from VSYNC event until when
66 // visible light can be noticed by the user. 66 // visible light can be noticed by the user.
67 const char kAshEstimatedPresentationDelay[] = 67 const char kAshEstimatedPresentationDelay[] =
68 "ash-estimated-presentation-delay"; 68 "ash-estimated-presentation-delay";
69 69
70 // Enables the palette next to the status area. 70 // Enables the palette next to the status area.
71 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; 71 const char kAshForceEnablePalette[] = "ash-force-enable-palette";
72 72
73 // Enables required things for the selected UI mode, regardless of whether the 73 // Enables required things for the selected UI mode, regardless of whether the
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool ConstrainPointerToRoot() { 111 bool ConstrainPointerToRoot() {
112 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 112 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
113 113
114 return base::SysInfo::IsRunningOnChromeOS() || 114 return base::SysInfo::IsRunningOnChromeOS() ||
115 base::CommandLine::ForCurrentProcess()->HasSwitch( 115 base::CommandLine::ForCurrentProcess()->HasSwitch(
116 kAshConstrainPointerToRoot); 116 kAshConstrainPointerToRoot);
117 } 117 }
118 118
119 } // namespace switches 119 } // namespace switches
120 } // namespace ash 120 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/rotator/screen_rotation_animator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698