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

Side by Side Diff: ash/ash_switches.cc

Issue 16105005: Cleanup legacy flags and switches (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash_switches.h ('k') | ash/wm/window_animations.cc » ('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 8
9 namespace ash { 9 namespace ash {
10 namespace switches { 10 namespace switches {
11 11
12 // Enables an animated transition from the boot splash screen (Chrome logo on a 12 // Enables an animated transition from the boot splash screen (Chrome logo on a
13 // white background) to the login screen. Implies 13 // white background) to the login screen. Implies
14 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in 14 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in
15 // conjunction with |kDisableBootAnimation| (since the transition begins at the 15 // conjunction with |kDisableBootAnimation| (since the transition begins at the
16 // same time as the white/grayscale login screen animation). 16 // same time as the white/grayscale login screen animation).
17 const char kAshAnimateFromBootSplashScreen[] = 17 const char kAshAnimateFromBootSplashScreen[] =
18 "ash-animate-from-boot-splash-screen"; 18 "ash-animate-from-boot-splash-screen";
19 19
20 // Variation of boot animation that uses Tween::EASE_OUT_2.
21 const char kAshBootAnimationFunction2[] = "ash-boot-animation-function2";
22
23 // Variation of boot animation that uses Tween::EASE_OUT_3.
24 const char kAshBootAnimationFunction3[] = "ash-boot-animation-function3";
25
26 // Constrains the pointer movement within a root window on desktop. 20 // Constrains the pointer movement within a root window on desktop.
27 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 21 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
28 22
29 // Copies the host window's content to the system background layer at startup. 23 // Copies the host window's content to the system background layer at startup.
30 // Can make boot slightly slower, but also hides an even-longer awkward period 24 // Can make boot slightly slower, but also hides an even-longer awkward period
31 // where we display a white background if the login wallpaper takes a long time 25 // where we display a white background if the login wallpaper takes a long time
32 // to load. 26 // to load.
33 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot"; 27 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot";
34 28
35 // Enable keyboard shortcuts useful for debugging. 29 // Enable keyboard shortcuts useful for debugging.
36 const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; 30 const char kAshDebugShortcuts[] = "ash-debug-shortcuts";
37 31
38 // Disable auto window maximization logic. 32 // Disable auto window maximization logic.
39 const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing"; 33 const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing";
40 34
41 // Disable support for auto window placement. 35 // Disable support for auto window placement.
42 const char kAshDisableAutoWindowPlacement[] = 36 const char kAshDisableAutoWindowPlacement[] =
43 "ash-enable-auto-window-placement"; 37 "ash-enable-auto-window-placement";
44 38
45 // Disables boot animation v2, go back to v1.
46 const char kAshDisableBootAnimation2[] = "ash-disable-boot-animation2";
47
48 // Disables the limitter to throttle how quickly a user 39 // Disables the limitter to throttle how quickly a user
49 // can change display settings. 40 // can change display settings.
50 const char kAshDisableDisplayChangeLimiter[] = 41 const char kAshDisableDisplayChangeLimiter[] =
51 "ash-disable-display-change-limiter"; 42 "ash-disable-display-change-limiter";
52 43
53 // Disable the new cras audio handler. 44 // Disable the new cras audio handler.
54 const char kAshDisableNewAudioHandler[] = "ash-disable-new-audio-handler"; 45 const char kAshDisableNewAudioHandler[] = "ash-disable-new-audio-handler";
55 46
56 // If present new lock animations are enabled. 47 // If present new lock animations are enabled.
57 const char kAshDisableNewLockAnimations[] = "ash-disable-new-lock-animations"; 48 const char kAshDisableNewLockAnimations[] = "ash-disable-new-lock-animations";
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 152 }
162 153
163 bool ShowAudioDeviceMenu() { 154 bool ShowAudioDeviceMenu() {
164 return ash::switches::UseNewAudioHandler() && 155 return ash::switches::UseNewAudioHandler() &&
165 CommandLine::ForCurrentProcess()-> 156 CommandLine::ForCurrentProcess()->
166 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); 157 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu);
167 } 158 }
168 159
169 } // namespace switches 160 } // namespace switches
170 } // namespace ash 161 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698