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

Side by Side Diff: ash/ash_switches.cc

Issue 1921133002: Adds ash::MaterialDesignController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds ash::MaterialDesignController (CHECK_* -> DCHECK_*) Created 4 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/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/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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 "ash-hide-notifications-for-factory"; 88 "ash-hide-notifications-for-factory";
89 89
90 // Sets a window size, optional position, and optional scale factor. 90 // Sets a window size, optional position, and optional scale factor.
91 // "1024x768" creates a window of size 1024x768. 91 // "1024x768" creates a window of size 1024x768.
92 // "100+200-1024x768" positions the window at 100,200. 92 // "100+200-1024x768" positions the window at 100,200.
93 // "1024x768*2" sets the scale factor to 2 for a high DPI display. 93 // "1024x768*2" sets the scale factor to 2 for a high DPI display.
94 // "800,0+800-800x800" for two displays at 800x800 resolution. 94 // "800,0+800-800x800" for two displays at 800x800 resolution.
95 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. 95 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution.
96 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; 96 const char kAshHostWindowBounds[] = "ash-host-window-bounds";
97 97
98 // Specifies if Material Design elements in Chrome OS system UI are enabled.
99 // Can be disabled / enabled / experimental allowing to launch incrementally.
100 const char kAshMaterialDesign[] = "ash-md";
101 const char kAshMaterialDesignDisabled[] = "disabled";
102 const char kAshMaterialDesignEnabled[] = "enabled";
103 const char kAshMaterialDesignExperimental[] = "experimental";
104
98 // Specifies the layout mode and offsets for the secondary display for 105 // Specifies the layout mode and offsets for the secondary display for
99 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, 106 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
100 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display 107 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
101 // is positioned on the right with -100 offset. (above than primary) 108 // is positioned on the right with -100 offset. (above than primary)
102 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; 109 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
103 110
104 // Enables the heads-up display for tracking touch points. 111 // Enables the heads-up display for tracking touch points.
105 const char kAshTouchHud[] = "ash-touch-hud"; 112 const char kAshTouchHud[] = "ash-touch-hud";
106 113
107 // Uses the 1st display in --ash-host-window-bounds as internal display. 114 // Uses the 1st display in --ash-host-window-bounds as internal display.
(...skipping 21 matching lines...) Expand all
129 136
130 return base::SysInfo::IsRunningOnChromeOS() || 137 return base::SysInfo::IsRunningOnChromeOS() ||
131 base::CommandLine::ForCurrentProcess()->HasSwitch( 138 base::CommandLine::ForCurrentProcess()->HasSwitch(
132 kAshConstrainPointerToRoot); 139 kAshConstrainPointerToRoot);
133 } 140 }
134 141
135 #endif 142 #endif
136 143
137 } // namespace switches 144 } // namespace switches
138 } // namespace ash 145 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/material_design/material_design_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698