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

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

Issue 2692663002: Gut ash::MaterialDesignController, and remove the about:flags entry. (Closed)
Patch Set: yet another rebase Created 3 years, 10 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/common/ash_switches.h ('k') | ash/common/material_design/material_design_controller.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/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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 66 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
67 67
68 // Enables the palette next to the status area. 68 // Enables the palette next to the status area.
69 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; 69 const char kAshForceEnablePalette[] = "ash-force-enable-palette";
70 70
71 // Hides notifications that are irrelevant to Chrome OS device factory testing, 71 // Hides notifications that are irrelevant to Chrome OS device factory testing,
72 // such as battery level updates. 72 // such as battery level updates.
73 const char kAshHideNotificationsForFactory[] = 73 const char kAshHideNotificationsForFactory[] =
74 "ash-hide-notifications-for-factory"; 74 "ash-hide-notifications-for-factory";
75 75
76 // Specifies if Material Design elements in Chrome OS system UI are enabled.
77 // Can be disabled / enabled / experimental allowing to launch incrementally.
78 const char kAshMaterialDesign[] = "ash-md";
79 const char kAshMaterialDesignDisabled[] = "disabled";
80 const char kAshMaterialDesignEnabled[] = "enabled";
81 const char kAshMaterialDesignExperimental[] = "experimental";
82
83 // Enables the heads-up display for tracking touch points. 76 // Enables the heads-up display for tracking touch points.
84 const char kAshTouchHud[] = "ash-touch-hud"; 77 const char kAshTouchHud[] = "ash-touch-hud";
85 78
86 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 79 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
87 // Standard hardware reports releases immediately after presses. If set, we 80 // Standard hardware reports releases immediately after presses. If set, we
88 // lock the screen or shutdown the system immediately in response to a press 81 // lock the screen or shutdown the system immediately in response to a press
89 // instead of displaying an interactive animation. 82 // instead of displaying an interactive animation.
90 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 83 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
91 84
92 // Constrains the pointer movement within a root window on desktop. 85 // Constrains the pointer movement within a root window on desktop.
93 bool ConstrainPointerToRoot() { 86 bool ConstrainPointerToRoot() {
94 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 87 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
95 88
96 return base::SysInfo::IsRunningOnChromeOS() || 89 return base::SysInfo::IsRunningOnChromeOS() ||
97 base::CommandLine::ForCurrentProcess()->HasSwitch( 90 base::CommandLine::ForCurrentProcess()->HasSwitch(
98 kAshConstrainPointerToRoot); 91 kAshConstrainPointerToRoot);
99 } 92 }
100 93
101 bool DockedWindowsEnabled() { 94 bool DockedWindowsEnabled() {
102 return base::CommandLine::ForCurrentProcess()->HasSwitch( 95 return base::CommandLine::ForCurrentProcess()->HasSwitch(
103 ash::switches::kAshEnableDockedWindows); 96 ash::switches::kAshEnableDockedWindows);
104 } 97 }
105 98
106 } // namespace switches 99 } // namespace switches
107 } // namespace ash 100 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/ash_switches.h ('k') | ash/common/material_design/material_design_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698