Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // Disables use of DWM composition for top level windows. | 9 // Disables use of DWM composition for top level windows. |
| 10 const char kDisableDwmComposition[] = "disable-dwm-composition"; | 10 const char kDisableDwmComposition[] = "disable-dwm-composition"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 const char kLang[] = "lang"; | 43 const char kLang[] = "lang"; |
| 44 | 44 |
| 45 // Load the locale resources from the given path. When running on Mac/Unix the | 45 // Load the locale resources from the given path. When running on Mac/Unix the |
| 46 // path should point to a locale.pak file. | 46 // path should point to a locale.pak file. |
| 47 const char kLocalePak[] = "locale_pak"; | 47 const char kLocalePak[] = "locale_pak"; |
| 48 | 48 |
| 49 // Disable ui::MessageBox. This is useful when running as part of scripts that | 49 // Disable ui::MessageBox. This is useful when running as part of scripts that |
| 50 // do not have a user interface. | 50 // do not have a user interface. |
| 51 const char kNoMessageBox[] = "no-message-box"; | 51 const char kNoMessageBox[] = "no-message-box"; |
| 52 | 52 |
| 53 | |
|
Alexei Svitkine (slow)
2013/11/04 16:08:51
Nit: Remove extra line you added here.
yao
2013/11/04 19:38:29
Done.
| |
| 53 // Enables UI changes that make it easier to use with a touchscreen. | 54 // Enables UI changes that make it easier to use with a touchscreen. |
| 54 // WARNING: Do not check this flag directly when deciding what UI to draw, | 55 // WARNING: Do not check this flag directly when deciding what UI to draw, |
| 55 // instead you must call ui::GetDisplayLayout | 56 // instead you must call ui::GetDisplayLayout |
| 56 const char kTouchOptimizedUI[] = "touch-optimized-ui"; | 57 const char kTouchOptimizedUI[] = "touch-optimized-ui"; |
| 57 | 58 |
| 58 // The values the kTouchOptimizedUI switch may have, as in | 59 // The values the kTouchOptimizedUI switch may have, as in |
| 59 // "--touch-optimized-ui=disabled". | 60 // "--touch-optimized-ui=disabled". |
| 60 // auto: Enabled on monitors which have touchscreen support (default). | 61 // auto: Enabled on monitors which have touchscreen support (default). |
| 61 const char kTouchOptimizedUIAuto[] = "auto"; | 62 const char kTouchOptimizedUIAuto[] = "auto"; |
| 62 // enabled: always optimized for touch (even if no touch support). | 63 // enabled: always optimized for touch (even if no touch support). |
| 63 const char kTouchOptimizedUIEnabled[] = "enabled"; | 64 const char kTouchOptimizedUIEnabled[] = "enabled"; |
| 64 // disabled: never optimized for touch. | 65 // disabled: never optimized for touch. |
| 65 const char kTouchOptimizedUIDisabled[] = "disabled"; | 66 const char kTouchOptimizedUIDisabled[] = "disabled"; |
| 66 | 67 |
| 67 // Enables touch events on the side bezels. | 68 // Enables touch events on the side bezels. |
| 68 const char kTouchSideBezels[] = "touch-side-bezels"; | 69 const char kTouchSideBezels[] = "touch-side-bezels"; |
| 69 | 70 |
| 71 #if defined(OS_ANDROID) | |
| 72 // Uses the tablet specific UI components when available | |
| 73 const char kTabletUI[] = "tablet-ui"; | |
| 74 #endif | |
| 75 | |
| 70 #if defined(USE_XI2_MT) | 76 #if defined(USE_XI2_MT) |
| 71 // The calibration factors given as "<left>,<right>,<top>,<bottom>". | 77 // The calibration factors given as "<left>,<right>,<top>,<bottom>". |
| 72 const char kTouchCalibration[] = "touch-calibration"; | 78 const char kTouchCalibration[] = "touch-calibration"; |
| 73 #endif | 79 #endif |
| 74 | 80 |
| 75 } // namespace switches | 81 } // namespace switches |
| OLD | NEW |