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

Side by Side Diff: ash/ash_switches.cc

Issue 2855143004: Implements a display scale tray setting behind a chrome switch (Closed)
Patch Set: Sync with ToT 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/system/display_scale/scale_detailed_view.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 display scale tray settings. This uses force-device-scale-factor flag
62 // to modify the dsf of the device to any non discrete value.
63 const char kAshEnableScaleSettingsTray[] = "ash-enable-scale-settings-tray";
64
61 // Disables a smoother animation for screen rotation. 65 // Disables a smoother animation for screen rotation.
62 const char kAshDisableSmoothScreenRotation[] = 66 const char kAshDisableSmoothScreenRotation[] =
63 "ash-disable-smooth-screen-rotation"; 67 "ash-disable-smooth-screen-rotation";
64 68
65 // Specifies the estimated time (in milliseconds) from VSYNC event until when 69 // Specifies the estimated time (in milliseconds) from VSYNC event until when
66 // visible light can be noticed by the user. 70 // visible light can be noticed by the user.
67 const char kAshEstimatedPresentationDelay[] = 71 const char kAshEstimatedPresentationDelay[] =
68 "ash-estimated-presentation-delay"; 72 "ash-estimated-presentation-delay";
69 73
70 // Enables the stylus tools next to the status area. 74 // Enables the stylus tools next to the status area.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 bool ConstrainPointerToRoot() { 119 bool ConstrainPointerToRoot() {
116 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 120 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
117 121
118 return base::SysInfo::IsRunningOnChromeOS() || 122 return base::SysInfo::IsRunningOnChromeOS() ||
119 base::CommandLine::ForCurrentProcess()->HasSwitch( 123 base::CommandLine::ForCurrentProcess()->HasSwitch(
120 kAshConstrainPointerToRoot); 124 kAshConstrainPointerToRoot);
121 } 125 }
122 126
123 } // namespace switches 127 } // namespace switches
124 } // namespace ash 128 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/system/display_scale/scale_detailed_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698