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

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

Issue 2325723003: Cleanup Ash Metro mode. (Closed)
Patch Set: review comments Created 4 years, 3 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/test/ash_test_base.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/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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // This is for debugging on linux desktop. 124 // This is for debugging on linux desktop.
125 const char kAshUseFirstDisplayAsInternal[] = 125 const char kAshUseFirstDisplayAsInternal[] =
126 "ash-use-first-display-as-internal"; 126 "ash-use-first-display-as-internal";
127 127
128 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 128 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
129 // Standard hardware reports releases immediately after presses. If set, we 129 // Standard hardware reports releases immediately after presses. If set, we
130 // lock the screen or shutdown the system immediately in response to a press 130 // lock the screen or shutdown the system immediately in response to a press
131 // instead of displaying an interactive animation. 131 // instead of displaying an interactive animation.
132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
133 133
134 #if defined(OS_WIN)
135 // Force Ash to open its root window on the desktop, even on Windows 8 where
136 // it would normally end up in metro.
137 const char kForceAshToDesktop[] = "ash-force-desktop";
138
139 #endif
140
141 #if defined(OS_CHROMEOS) 134 #if defined(OS_CHROMEOS)
142 // Constrains the pointer movement within a root window on desktop. 135 // Constrains the pointer movement within a root window on desktop.
143 bool ConstrainPointerToRoot() { 136 bool ConstrainPointerToRoot() {
144 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 137 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
145 138
146 return base::SysInfo::IsRunningOnChromeOS() || 139 return base::SysInfo::IsRunningOnChromeOS() ||
147 base::CommandLine::ForCurrentProcess()->HasSwitch( 140 base::CommandLine::ForCurrentProcess()->HasSwitch(
148 kAshConstrainPointerToRoot); 141 kAshConstrainPointerToRoot);
149 } 142 }
150 143
151 #endif 144 #endif
152 145
153 } // namespace switches 146 } // namespace switches
154 } // namespace ash 147 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/ash_switches.h ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698