[email protected] | 7dfb6960 | 2012-02-17 00:29:01 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 3d2c6fb | 2011-07-06 22:26:45 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 4 | |
| 5 | #include "ui/base/ui_base_switches.h" |
| 6 | |
| 7 | namespace switches { |
| 8 | |
[email protected] | efe4d0a | 2014-03-04 01:06:32 | [diff] [blame] | 9 | #if defined(OS_MACOSX) && !defined(OS_IOS) |
ccameron | bc001ff9 | 2015-08-04 08:06:36 | [diff] [blame^] | 10 | // Fall back to using CAOpenGLLayers display content, instead of the IOSurface |
| 11 | // based overlay display path. |
| 12 | const char kDisableMacOverlays[] = "disable-mac-overlays"; |
| 13 | |
ccameron | 15f6a525 | 2015-06-16 10:33:50 | [diff] [blame] | 14 | // Disable use of cross-process CALayers to display content directly from the |
[email protected] | 5693a6cb | 2014-08-15 09:41:13 | [diff] [blame] | 15 | // GPU process on Mac. |
ccameron | 21d3def09 | 2014-10-10 23:45:55 | [diff] [blame] | 16 | const char kDisableRemoteCoreAnimation[] = "disable-remote-core-animation"; |
[email protected] | efe4d0a | 2014-03-04 01:06:32 | [diff] [blame] | 17 | #endif |
| 18 | |
[email protected] | 0a2703fd | 2013-04-12 16:14:08 | [diff] [blame] | 19 | // Disables use of DWM composition for top level windows. |
| 20 | const char kDisableDwmComposition[] = "disable-dwm-composition"; |
| 21 | |
huangs | ab023175 | 2015-04-02 21:43:00 | [diff] [blame] | 22 | // Disables large icons on the New Tab page. |
| 23 | const char kDisableIconNtp[] = "disable-icon-ntp"; |
| 24 | |
[email protected] | 6247aba | 2013-03-04 22:57:18 | [diff] [blame] | 25 | // Disables touch adjustment. |
[email protected] | 2d481774 | 2012-12-17 20:16:18 | [diff] [blame] | 26 | const char kDisableTouchAdjustment[] = "disable-touch-adjustment"; |
| 27 | |
[email protected] | 1400e6dc | 2013-04-27 02:36:27 | [diff] [blame] | 28 | // Disables touch event based drag and drop. |
| 29 | const char kDisableTouchDragDrop[] = "disable-touch-drag-drop"; |
| 30 | |
| 31 | // Disables controls that support touch base text editing. |
| 32 | const char kDisableTouchEditing[] = "disable-touch-editing"; |
| 33 | |
jonross | d24d766f | 2014-12-01 23:55:30 | [diff] [blame] | 34 | // Disables additional visual feedback to touch input. |
| 35 | const char kDisableTouchFeedback[] = "disable-touch-feedback"; |
| 36 | |
huangs | ab023175 | 2015-04-02 21:43:00 | [diff] [blame] | 37 | // Enables large icons on the New Tab page. |
| 38 | const char kEnableIconNtp[] = "enable-icon-ntp"; |
| 39 | |
luken | 30ef562 | 2014-11-24 19:37:55 | [diff] [blame] | 40 | // Enables a zoomed popup bubble that allows the user to select a link. |
| 41 | const char kEnableLinkDisambiguationPopup[] = |
| 42 | "enable-link-disambiguation-popup"; |
| 43 | |
[email protected] | 1400e6dc | 2013-04-27 02:36:27 | [diff] [blame] | 44 | // Enables touch event based drag and drop. |
[email protected] | 2d481774 | 2012-12-17 20:16:18 | [diff] [blame] | 45 | const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; |
[email protected] | b9c96ff | 2012-11-26 22:24:40 | [diff] [blame] | 46 | |
[email protected] | b74323e | 2013-02-15 21:55:31 | [diff] [blame] | 47 | // Enables controls that support touch base text editing. |
| 48 | const char kEnableTouchEditing[] = "enable-touch-editing"; |
| 49 | |
[email protected] | 3455af4e | 2012-03-12 15:35:12 | [diff] [blame] | 50 | // The language file that we want to try to open. Of the form |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 51 | // language[-country] where language is the 2 letter code from ISO-639. |
[email protected] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 52 | const char kLang[] = "lang"; |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 53 | |
jonross | 114d7c4 | 2015-07-16 17:42:23 | [diff] [blame] | 54 | // Defines the Material Design visual feedback shape. |
| 55 | const char kMaterialDesignInkDrop[] = "material-design-ink-drop"; |
| 56 | |
| 57 | // Defines the Material Design visual feedback as a circle. |
| 58 | const char kMaterialDesignInkDropCircle[] = "circle"; |
| 59 | |
| 60 | // Defines the Material Design visual feedback as a sqaure. |
| 61 | const char kMaterialDesignInkDropSquare[] = "square"; |
| 62 | |
| 63 | // Defines the speed of Material Design visual feedback animations. |
| 64 | const char kMaterialDesignInkDropAnimationSpeed[] = |
| 65 | "material-design-ink-drop-animation-speed"; |
| 66 | |
| 67 | // Defines that Material Design visual feedback animations should be fast. |
| 68 | const char kMaterialDesignInkDropAnimationSpeedFast[] = "fast"; |
| 69 | |
| 70 | // Defines that Material Design visual feedback animations should be slow. |
| 71 | const char kMaterialDesignInkDropAnimationSpeedSlow[] = "slow"; |
| 72 | |
bruthig | 0d89d6a | 2015-06-26 19:37:49 | [diff] [blame] | 73 | #if defined(ENABLE_TOPCHROME_MD) |
| 74 | // Enables top Chrome material design elements. |
| 75 | const char kTopChromeMD[] = "top-chrome-md"; |
| 76 | |
| 77 | // Material design mode for the |kTopChromeMD| switch. |
| 78 | const char kTopChromeMDMaterial[] = "material"; |
| 79 | |
| 80 | // Material design hybrid mode for the |kTopChromeMD| switch. Targeted for |
| 81 | // mouse/touch hybrid devices. |
| 82 | const char kTopChromeMDMaterialHybrid[] = "material-hybrid"; |
| 83 | |
| 84 | // Classic, non-material, mode for the |kTopChromeMD| switch. |
| 85 | const char kTopChromeMDNonMaterial[] = ""; |
| 86 | #endif // defined(ENABLE_TOPCHROME_MD) |
| 87 | |
luken | 862c178 | 2014-09-04 05:34:46 | [diff] [blame] | 88 | // On Windows only: requests that Chrome connect to the running Metro viewer |
| 89 | // process. |
| 90 | const char kViewerConnect[] = "connect-to-metro-viewer"; |
| 91 | |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 92 | } // namespace switches |