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

Side by Side Diff: ash/ash_switches.cc

Issue 16900002: Added flag for alternate launcher settings (remaining changes to come). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated description and string 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
« no previous file with comments | « ash/ash_switches.h ('k') | ash/shelf/shelf_layout_manager.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 8
9 namespace ash { 9 namespace ash {
10 namespace switches { 10 namespace switches {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Specifies the layout mode and offsets for the secondary display for 114 // Specifies the layout mode and offsets for the secondary display for
115 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, 115 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
116 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display 116 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
117 // is positioned on the right with -100 offset. (above than primary) 117 // is positioned on the right with -100 offset. (above than primary)
118 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; 118 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
119 119
120 // Enables the heads-up display for tracking touch points. 120 // Enables the heads-up display for tracking touch points.
121 const char kAshTouchHud[] = "ash-touch-hud"; 121 const char kAshTouchHud[] = "ash-touch-hud";
122 122
123 // Use alternate layout of the shelf for testing a new look and feel:
124 // Slightly smaller profile, only 2 states for the "bar highlight" on
125 // launcher buttons, app list icon with more visible state indication,
126 // app list icon repositionable and defaulting as 1st item in shelf,
127 // more visible state indication for background on status area.
128 // crbug's [244983, 244990, 244994, 245005, 245012]
129 const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf";
130
123 // Uses the 1st display in --ash-host-window-bounds as internal display. 131 // Uses the 1st display in --ash-host-window-bounds as internal display.
124 // This is for debugging on linux desktop. 132 // This is for debugging on linux desktop.
125 const char kAshUseFirstDisplayAsInternal[] = 133 const char kAshUseFirstDisplayAsInternal[] =
126 "ash-use-first-display-as-internal"; 134 "ash-use-first-display-as-internal";
127 135
128 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 136 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
129 // Standard hardware reports releases immediately after presses. If set, we 137 // Standard hardware reports releases immediately after presses. If set, we
130 // lock the screen or shutdown the system immediately in response to a press 138 // lock the screen or shutdown the system immediately in response to a press
131 // instead of displaying an interactive animation. 139 // instead of displaying an interactive animation.
132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 140 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
(...skipping 17 matching lines...) Expand all
150 return !CommandLine::ForCurrentProcess()-> 158 return !CommandLine::ForCurrentProcess()->
151 HasSwitch(ash::switches::kAshDisableNewAudioHandler); 159 HasSwitch(ash::switches::kAshDisableNewAudioHandler);
152 } 160 }
153 161
154 bool ShowAudioDeviceMenu() { 162 bool ShowAudioDeviceMenu() {
155 return ash::switches::UseNewAudioHandler() && 163 return ash::switches::UseNewAudioHandler() &&
156 CommandLine::ForCurrentProcess()-> 164 CommandLine::ForCurrentProcess()->
157 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); 165 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu);
158 } 166 }
159 167
168 bool UseAlternateShelfLayout() {
169 return CommandLine::ForCurrentProcess()->
170 HasSwitch(ash::switches::kAshUseAlternateShelfLayout);
171 }
172
160 } // namespace switches 173 } // namespace switches
161 } // namespace ash 174 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698