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

Side by Side Diff: ui/base/ui_base_switches.cc

Issue 247193002: Remove touch layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 "ui/base/ui_base_switches.h" 5 #include "ui/base/ui_base_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 #if defined(OS_MACOSX) && !defined(OS_IOS) 9 #if defined(OS_MACOSX) && !defined(OS_IOS)
10 // Disable use of CoreAnimation to draw on the Mac. 10 // Disable use of CoreAnimation to draw on the Mac.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const char kLang[] = "lang"; 42 const char kLang[] = "lang";
43 43
44 // Load the locale resources from the given path. When running on Mac/Unix the 44 // Load the locale resources from the given path. When running on Mac/Unix the
45 // path should point to a locale.pak file. 45 // path should point to a locale.pak file.
46 const char kLocalePak[] = "locale_pak"; 46 const char kLocalePak[] = "locale_pak";
47 47
48 // Disable ui::MessageBox. This is useful when running as part of scripts that 48 // Disable ui::MessageBox. This is useful when running as part of scripts that
49 // do not have a user interface. 49 // do not have a user interface.
50 const char kNoMessageBox[] = "no-message-box"; 50 const char kNoMessageBox[] = "no-message-box";
51 51
52 // Enables UI changes that make it easier to use with a touchscreen.
53 // WARNING: Do not check this flag directly when deciding what UI to draw,
54 // instead you must call ui::GetDisplayLayout
55 const char kTouchOptimizedUI[] = "touch-optimized-ui";
56
57 // The values the kTouchOptimizedUI switch may have, as in
58 // "--touch-optimized-ui=disabled".
59 // auto: Enabled on monitors which have touchscreen support (default).
60 const char kTouchOptimizedUIAuto[] = "auto";
61 // enabled: always optimized for touch (even if no touch support).
62 const char kTouchOptimizedUIEnabled[] = "enabled";
63 // disabled: never optimized for touch.
64 const char kTouchOptimizedUIDisabled[] = "disabled";
65
66 } // namespace switches 52 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698