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

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

Issue 2241273004: Move kUseNewVKWindowBehavior switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; 115 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
116 116
117 // Enables the heads-up display for tracking touch points. 117 // Enables the heads-up display for tracking touch points.
118 const char kAshTouchHud[] = "ash-touch-hud"; 118 const char kAshTouchHud[] = "ash-touch-hud";
119 119
120 // Uses the 1st display in --ash-host-window-bounds as internal display. 120 // Uses the 1st display in --ash-host-window-bounds as internal display.
121 // This is for debugging on linux desktop. 121 // This is for debugging on linux desktop.
122 const char kAshUseFirstDisplayAsInternal[] = 122 const char kAshUseFirstDisplayAsInternal[] =
123 "ash-use-first-display-as-internal"; 123 "ash-use-first-display-as-internal";
124 124
125 // Use new window behavior for virtual keyboard (do not change work area in
126 // non-sticky mode).
127 const char kAshUseNewVKWindowBehavior[] = "ash-use-new-vk-window-behavior";
128
129 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 125 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
130 // Standard hardware reports releases immediately after presses. If set, we 126 // Standard hardware reports releases immediately after presses. If set, we
131 // lock the screen or shutdown the system immediately in response to a press 127 // lock the screen or shutdown the system immediately in response to a press
132 // instead of displaying an interactive animation. 128 // instead of displaying an interactive animation.
133 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 129 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
134 130
135 #if defined(OS_WIN) 131 #if defined(OS_WIN)
136 // Force Ash to open its root window on the desktop, even on Windows 8 where 132 // Force Ash to open its root window on the desktop, even on Windows 8 where
137 // it would normally end up in metro. 133 // it would normally end up in metro.
138 const char kForceAshToDesktop[] = "ash-force-desktop"; 134 const char kForceAshToDesktop[] = "ash-force-desktop";
139 135
140 #endif 136 #endif
141 137
142 #if defined(OS_CHROMEOS) 138 #if defined(OS_CHROMEOS)
143 // Constrains the pointer movement within a root window on desktop. 139 // Constrains the pointer movement within a root window on desktop.
144 bool ConstrainPointerToRoot() { 140 bool ConstrainPointerToRoot() {
145 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 141 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
146 142
147 return base::SysInfo::IsRunningOnChromeOS() || 143 return base::SysInfo::IsRunningOnChromeOS() ||
148 base::CommandLine::ForCurrentProcess()->HasSwitch( 144 base::CommandLine::ForCurrentProcess()->HasSwitch(
149 kAshConstrainPointerToRoot); 145 kAshConstrainPointerToRoot);
150 } 146 }
151 147
152 #endif 148 #endif
153 149
154 } // namespace switches 150 } // namespace switches
155 } // namespace ash 151 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698