| 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 // Whether or not ImageSkiaOperations methods can scale one of images | 9 // Whether or not ImageSkiaOperations methods can scale one of images |
| 10 // if they don't have the same scale factor. | 10 // if they don't have the same scale factor. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 const char kLang[] = "lang"; | 40 const char kLang[] = "lang"; |
| 41 | 41 |
| 42 // Loads 2x resources. These resource paks currently contain | 42 // Loads 2x resources. These resource paks currently contain |
| 43 // mix of 1x and 2x and loading them may break the UI on 2x display. | 43 // mix of 1x and 2x and loading them may break the UI on 2x display. |
| 44 const char kLoad2xResources[] = "load-2x-resources"; | 44 const char kLoad2xResources[] = "load-2x-resources"; |
| 45 | 45 |
| 46 // Load the locale resources from the given path. When running on Mac/Unix the | 46 // Load the locale resources from the given path. When running on Mac/Unix the |
| 47 // path should point to a locale.pak file. | 47 // path should point to a locale.pak file. |
| 48 const char kLocalePak[] = "locale_pak"; | 48 const char kLocalePak[] = "locale_pak"; |
| 49 | 49 |
| 50 // Enables a new appearance for checkboxes and radio buttons. | 50 // Disables the new appearance for checkboxes and radio buttons. |
| 51 const char kNewCheckboxStyle[] = "new-checkbox-style"; | 51 const char kOldCheckboxStyle[] = "old-checkbox-style"; |
| 52 | 52 |
| 53 // Disable ui::MessageBox. This is useful when running as part of scripts that | 53 // Disable ui::MessageBox. This is useful when running as part of scripts that |
| 54 // do not have a user interface. | 54 // do not have a user interface. |
| 55 const char kNoMessageBox[] = "no-message-box"; | 55 const char kNoMessageBox[] = "no-message-box"; |
| 56 | 56 |
| 57 // Enables UI changes that make it easier to use with a touchscreen. | 57 // Enables UI changes that make it easier to use with a touchscreen. |
| 58 // WARNING: Do not check this flag directly when deciding what UI to draw, | 58 // WARNING: Do not check this flag directly when deciding what UI to draw, |
| 59 // instead you must call ui::GetDisplayLayout | 59 // instead you must call ui::GetDisplayLayout |
| 60 const char kTouchOptimizedUI[] = "touch-optimized-ui"; | 60 const char kTouchOptimizedUI[] = "touch-optimized-ui"; |
| 61 | 61 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 78 #endif | 78 #endif |
| 79 | 79 |
| 80 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 80 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
| 81 // Tells chrome to interpret events from these devices as touch events. Only | 81 // Tells chrome to interpret events from these devices as touch events. Only |
| 82 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the | 82 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the |
| 83 // devices can be retrieved from 'xinput list'. | 83 // devices can be retrieved from 'xinput list'. |
| 84 const char kTouchDevices[] = "touch-devices"; | 84 const char kTouchDevices[] = "touch-devices"; |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 } // namespace switches | 87 } // namespace switches |
| OLD | NEW |