[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"; |
ccameron | 469fd3d | 2015-08-21 00:36:59 | [diff] [blame] | 17 | |
| 18 | // Show borders around CALayers corresponding to overlays and partial damage. |
| 19 | const char kShowMacOverlayBorders[] = "show-mac-overlay-borders"; |
[email protected] | efe4d0a | 2014-03-04 01:06:32 | [diff] [blame] | 20 | #endif |
| 21 | |
shuchen | cb0b755 | 2015-10-08 18:43:07 | [diff] [blame] | 22 | #if defined(OS_WIN) |
| 23 | // Disables merging the key event (WM_KEY*) with the char event (WM_CHAR). |
| 24 | const char kDisableMergeKeyCharEvents[] = "disable-merge-key-char-events"; |
| 25 | |
| 26 | // Enables merging the key event (WM_KEY*) with the char event (WM_CHAR). |
| 27 | const char kEnableMergeKeyCharEvents[] = "enable-merge-key-char-events"; |
| 28 | #endif |
| 29 | |
[email protected] | 0a2703fd | 2013-04-12 16:14:08 | [diff] [blame] | 30 | // Disables use of DWM composition for top level windows. |
| 31 | const char kDisableDwmComposition[] = "disable-dwm-composition"; |
| 32 | |
huangs | ab023175 | 2015-04-02 21:43:00 | [diff] [blame] | 33 | // Disables large icons on the New Tab page. |
| 34 | const char kDisableIconNtp[] = "disable-icon-ntp"; |
| 35 | |
[email protected] | 6247aba | 2013-03-04 22:57:18 | [diff] [blame] | 36 | // Disables touch adjustment. |
[email protected] | 2d481774 | 2012-12-17 20:16:18 | [diff] [blame] | 37 | const char kDisableTouchAdjustment[] = "disable-touch-adjustment"; |
| 38 | |
[email protected] | 1400e6dc | 2013-04-27 02:36:27 | [diff] [blame] | 39 | // Disables touch event based drag and drop. |
| 40 | const char kDisableTouchDragDrop[] = "disable-touch-drag-drop"; |
| 41 | |
jonross | d24d766f | 2014-12-01 23:55:30 | [diff] [blame] | 42 | // Disables additional visual feedback to touch input. |
| 43 | const char kDisableTouchFeedback[] = "disable-touch-feedback"; |
| 44 | |
huangs | ab023175 | 2015-04-02 21:43:00 | [diff] [blame] | 45 | // Enables large icons on the New Tab page. |
| 46 | const char kEnableIconNtp[] = "enable-icon-ntp"; |
| 47 | |
luken | 30ef562 | 2014-11-24 19:37:55 | [diff] [blame] | 48 | // Enables a zoomed popup bubble that allows the user to select a link. |
| 49 | const char kEnableLinkDisambiguationPopup[] = |
| 50 | "enable-link-disambiguation-popup"; |
| 51 | |
[email protected] | 1400e6dc | 2013-04-27 02:36:27 | [diff] [blame] | 52 | // Enables touch event based drag and drop. |
[email protected] | 2d481774 | 2012-12-17 20:16:18 | [diff] [blame] | 53 | const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; |
[email protected] | b9c96ff | 2012-11-26 22:24:40 | [diff] [blame] | 54 | |
[email protected] | 3455af4e | 2012-03-12 15:35:12 | [diff] [blame] | 55 | // The language file that we want to try to open. Of the form |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 56 | // language[-country] where language is the 2 letter code from ISO-639. |
[email protected] | f463cd4 | 2012-05-09 16:05:15 | [diff] [blame] | 57 | const char kLang[] = "lang"; |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 58 | |
jonross | 114d7c4 | 2015-07-16 17:42:23 | [diff] [blame] | 59 | // Defines the speed of Material Design visual feedback animations. |
| 60 | const char kMaterialDesignInkDropAnimationSpeed[] = |
| 61 | "material-design-ink-drop-animation-speed"; |
| 62 | |
| 63 | // Defines that Material Design visual feedback animations should be fast. |
| 64 | const char kMaterialDesignInkDropAnimationSpeedFast[] = "fast"; |
| 65 | |
| 66 | // Defines that Material Design visual feedback animations should be slow. |
| 67 | const char kMaterialDesignInkDropAnimationSpeedSlow[] = "slow"; |
| 68 | |
bruthig | 0d89d6a | 2015-06-26 19:37:49 | [diff] [blame] | 69 | #if defined(ENABLE_TOPCHROME_MD) |
| 70 | // Enables top Chrome material design elements. |
| 71 | const char kTopChromeMD[] = "top-chrome-md"; |
| 72 | |
| 73 | // Material design mode for the |kTopChromeMD| switch. |
| 74 | const char kTopChromeMDMaterial[] = "material"; |
| 75 | |
| 76 | // Material design hybrid mode for the |kTopChromeMD| switch. Targeted for |
| 77 | // mouse/touch hybrid devices. |
| 78 | const char kTopChromeMDMaterialHybrid[] = "material-hybrid"; |
| 79 | |
| 80 | // Classic, non-material, mode for the |kTopChromeMD| switch. |
| 81 | const char kTopChromeMDNonMaterial[] = ""; |
| 82 | #endif // defined(ENABLE_TOPCHROME_MD) |
| 83 | |
luken | 862c178 | 2014-09-04 05:34:46 | [diff] [blame] | 84 | // On Windows only: requests that Chrome connect to the running Metro viewer |
| 85 | // process. |
| 86 | const char kViewerConnect[] = "connect-to-metro-viewer"; |
| 87 | |
[email protected] | 42ce29d | 2011-01-20 23:19:46 | [diff] [blame] | 88 | } // namespace switches |