| 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 "content/public/common/content_switches.h" | 5 #include "content/public/common/content_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 | 908 |
| 909 #if defined(OS_CHROMEOS) | 909 #if defined(OS_CHROMEOS) |
| 910 // Disables panel fitting (used for mirror mode). | 910 // Disables panel fitting (used for mirror mode). |
| 911 const char kDisablePanelFitting[] = "disable-panel-fitting"; | 911 const char kDisablePanelFitting[] = "disable-panel-fitting"; |
| 912 | 912 |
| 913 // Enables VA-API accelerated video encode. | 913 // Enables VA-API accelerated video encode. |
| 914 const char kDisableVaapiAcceleratedVideoEncode[] = | 914 const char kDisableVaapiAcceleratedVideoEncode[] = |
| 915 "disable-vaapi-accelerated-video-encode"; | 915 "disable-vaapi-accelerated-video-encode"; |
| 916 #endif | 916 #endif |
| 917 | 917 |
| 918 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | |
| 919 // Allows sending text-to-speech requests to speech-dispatcher, a common | |
| 920 // Linux speech service. Because it's buggy, the user must explicitly | |
| 921 // enable it so that visiting a random webpage can't cause instability. | |
| 922 const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher"; | |
| 923 #endif | |
| 924 | |
| 925 #if defined(OS_MACOSX) && !defined(OS_IOS) | 918 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 926 // Disables support for Core Animation plugins. This is triggered when | 919 // Disables support for Core Animation plugins. This is triggered when |
| 927 // accelerated compositing is disabled. See http://crbug.com/122430 . | 920 // accelerated compositing is disabled. See http://crbug.com/122430 . |
| 928 const char kDisableCoreAnimationPlugins[] = | 921 const char kDisableCoreAnimationPlugins[] = |
| 929 "disable-core-animation-plugins"; | 922 "disable-core-animation-plugins"; |
| 930 #endif | 923 #endif |
| 931 | 924 |
| 932 #if defined(OS_WIN) | 925 #if defined(OS_WIN) |
| 933 // Device scale factor passed to certain processes like renderers, etc. | 926 // Device scale factor passed to certain processes like renderers, etc. |
| 934 const char kDeviceScaleFactor[] = "device-scale-factor"; | 927 const char kDeviceScaleFactor[] = "device-scale-factor"; |
| 935 | 928 |
| 936 // Disables the DirectWrite font rendering system on windows. | 929 // Disables the DirectWrite font rendering system on windows. |
| 937 const char kDisableDirectWrite[] = "disable-direct-write"; | 930 const char kDisableDirectWrite[] = "disable-direct-write"; |
| 938 | 931 |
| 939 // Disable the Legacy Window which corresponds to the size of the WebContents. | 932 // Disable the Legacy Window which corresponds to the size of the WebContents. |
| 940 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; | 933 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; |
| 941 | 934 |
| 942 // Enable the Win32K process mitigation policy for renderer processes which | 935 // Enable the Win32K process mitigation policy for renderer processes which |
| 943 // prevents them from invoking user32 and gdi32 system calls which enter | 936 // prevents them from invoking user32 and gdi32 system calls which enter |
| 944 // the kernel. This is only supported on Windows 8 and beyond. | 937 // the kernel. This is only supported on Windows 8 and beyond. |
| 945 const char kEnableWin32kRendererLockDown[] | 938 const char kEnableWin32kRendererLockDown[] |
| 946 = "enable_win32k_renderer_lockdown"; | 939 = "enable_win32k_renderer_lockdown"; |
| 947 #endif | 940 #endif |
| 948 | 941 |
| 949 // Don't dump stuff here, follow the same order as the header. | 942 // Don't dump stuff here, follow the same order as the header. |
| 950 | 943 |
| 951 } // namespace switches | 944 } // namespace switches |
| OLD | NEW |