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 // Uses the tablet specific UI components when available | |
| 54 const char kTabletUI[] = "tablet-ui"; | |
|
Alexei Svitkine (slow)
2013/11/01 18:48:27
This should be ifdef android.
yao
2013/11/04 15:56:19
Done.
| |
| 55 | |
| 53 // Enables UI changes that make it easier to use with a touchscreen. | 56 // 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, | 57 // WARNING: Do not check this flag directly when deciding what UI to draw, |
| 55 // instead you must call ui::GetDisplayLayout | 58 // instead you must call ui::GetDisplayLayout |
| 56 const char kTouchOptimizedUI[] = "touch-optimized-ui"; | 59 const char kTouchOptimizedUI[] = "touch-optimized-ui"; |
| 57 | 60 |
| 58 // The values the kTouchOptimizedUI switch may have, as in | 61 // The values the kTouchOptimizedUI switch may have, as in |
| 59 // "--touch-optimized-ui=disabled". | 62 // "--touch-optimized-ui=disabled". |
| 60 // auto: Enabled on monitors which have touchscreen support (default). | 63 // auto: Enabled on monitors which have touchscreen support (default). |
| 61 const char kTouchOptimizedUIAuto[] = "auto"; | 64 const char kTouchOptimizedUIAuto[] = "auto"; |
| 62 // enabled: always optimized for touch (even if no touch support). | 65 // enabled: always optimized for touch (even if no touch support). |
| 63 const char kTouchOptimizedUIEnabled[] = "enabled"; | 66 const char kTouchOptimizedUIEnabled[] = "enabled"; |
| 64 // disabled: never optimized for touch. | 67 // disabled: never optimized for touch. |
| 65 const char kTouchOptimizedUIDisabled[] = "disabled"; | 68 const char kTouchOptimizedUIDisabled[] = "disabled"; |
| 66 | 69 |
| 67 // Enables touch events on the side bezels. | 70 // Enables touch events on the side bezels. |
| 68 const char kTouchSideBezels[] = "touch-side-bezels"; | 71 const char kTouchSideBezels[] = "touch-side-bezels"; |
| 69 | 72 |
| 70 #if defined(USE_XI2_MT) | 73 #if defined(USE_XI2_MT) |
| 71 // The calibration factors given as "<left>,<right>,<top>,<bottom>". | 74 // The calibration factors given as "<left>,<right>,<top>,<bottom>". |
| 72 const char kTouchCalibration[] = "touch-calibration"; | 75 const char kTouchCalibration[] = "touch-calibration"; |
| 73 #endif | 76 #endif |
| 74 | 77 |
| 75 } // namespace switches | 78 } // namespace switches |
| OLD | NEW |