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

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

Issue 2180603002: Virtual keyboard - do not change work area of screen if in non-sticky mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Virtual keyboard - do not change work area of screen if in non-sticky mode 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
« no previous file with comments | « ash/common/ash_switches.h ('k') | ash/common/wm/workspace/workspace_layout_manager.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 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
125 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 129 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
126 // Standard hardware reports releases immediately after presses. If set, we 130 // Standard hardware reports releases immediately after presses. If set, we
127 // lock the screen or shutdown the system immediately in response to a press 131 // lock the screen or shutdown the system immediately in response to a press
128 // instead of displaying an interactive animation. 132 // instead of displaying an interactive animation.
129 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 133 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
130 134
131 #if defined(OS_WIN) 135 #if defined(OS_WIN)
132 // Force Ash to open its root window on the desktop, even on Windows 8 where 136 // Force Ash to open its root window on the desktop, even on Windows 8 where
133 // it would normally end up in metro. 137 // it would normally end up in metro.
134 const char kForceAshToDesktop[] = "ash-force-desktop"; 138 const char kForceAshToDesktop[] = "ash-force-desktop";
135 139
136 #endif 140 #endif
137 141
138 #if defined(OS_CHROMEOS) 142 #if defined(OS_CHROMEOS)
139 // Constrains the pointer movement within a root window on desktop. 143 // Constrains the pointer movement within a root window on desktop.
140 bool ConstrainPointerToRoot() { 144 bool ConstrainPointerToRoot() {
141 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 145 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
142 146
143 return base::SysInfo::IsRunningOnChromeOS() || 147 return base::SysInfo::IsRunningOnChromeOS() ||
144 base::CommandLine::ForCurrentProcess()->HasSwitch( 148 base::CommandLine::ForCurrentProcess()->HasSwitch(
145 kAshConstrainPointerToRoot); 149 kAshConstrainPointerToRoot);
146 } 150 }
147 151
148 #endif 152 #endif
149 153
150 } // namespace switches 154 } // namespace switches
151 } // namespace ash 155 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/ash_switches.h ('k') | ash/common/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698