| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to | 9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to |
| 10 // have an effect. 0 disables MSAA. | 10 // have an effect. 0 disables MSAA. |
| 11 const char kAcceleratedCanvas2dMSAASampleCount[] = "canvas-msaa-sample-count"; | 11 const char kAcceleratedCanvas2dMSAASampleCount[] = "canvas-msaa-sample-count"; |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 // Linux speech service. Because it's buggy, the user must explicitly | 959 // Linux speech service. Because it's buggy, the user must explicitly |
| 960 // enable it so that visiting a random webpage can't cause instability. | 960 // enable it so that visiting a random webpage can't cause instability. |
| 961 const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher"; | 961 const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher"; |
| 962 #endif | 962 #endif |
| 963 | 963 |
| 964 #if defined(OS_MACOSX) && !defined(OS_IOS) | 964 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 965 // Disables support for Core Animation plugins. This is triggered when | 965 // Disables support for Core Animation plugins. This is triggered when |
| 966 // accelerated compositing is disabled. See http://crbug.com/122430. | 966 // accelerated compositing is disabled. See http://crbug.com/122430. |
| 967 const char kDisableCoreAnimationPlugins[] = | 967 const char kDisableCoreAnimationPlugins[] = |
| 968 "disable-core-animation-plugins"; | 968 "disable-core-animation-plugins"; |
| 969 // Allow the browser to background renderer processes on the Mac. See |
| 970 // http://crbug.com/460102 . |
| 971 const char kBackgroundMacRendererProcesses[] = |
| 972 "background-mac-renderer-processes"; |
| 969 #endif | 973 #endif |
| 970 | 974 |
| 971 #if defined(OS_WIN) | 975 #if defined(OS_WIN) |
| 972 // Device scale factor passed to certain processes like renderers, etc. | 976 // Device scale factor passed to certain processes like renderers, etc. |
| 973 const char kDeviceScaleFactor[] = "device-scale-factor"; | 977 const char kDeviceScaleFactor[] = "device-scale-factor"; |
| 974 | 978 |
| 975 // Disable the Legacy Window which corresponds to the size of the WebContents. | 979 // Disable the Legacy Window which corresponds to the size of the WebContents. |
| 976 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; | 980 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; |
| 977 | 981 |
| 978 // Enables or disables the Win32K process mitigation policy for renderer | 982 // Enables or disables the Win32K process mitigation policy for renderer |
| 979 // processes which prevents them from invoking user32 and gdi32 system calls | 983 // processes which prevents them from invoking user32 and gdi32 system calls |
| 980 // which enter the kernel. This is only supported on Windows 8 and beyond. | 984 // which enter the kernel. This is only supported on Windows 8 and beyond. |
| 981 const char kDisableWin32kRendererLockDown[] = | 985 const char kDisableWin32kRendererLockDown[] = |
| 982 "disable-win32k-renderer-lockdown"; | 986 "disable-win32k-renderer-lockdown"; |
| 983 const char kEnableWin32kRendererLockDown[] = | 987 const char kEnableWin32kRendererLockDown[] = |
| 984 "enable-win32k-renderer-lockdown"; | 988 "enable-win32k-renderer-lockdown"; |
| 985 | 989 |
| 986 // DirectWrite FontCache is shared by browser to renderers using shared memory. | 990 // DirectWrite FontCache is shared by browser to renderers using shared memory. |
| 987 // This switch allows specifying suffix to shared memory section name to avoid | 991 // This switch allows specifying suffix to shared memory section name to avoid |
| 988 // clashes between different instances of Chrome. | 992 // clashes between different instances of Chrome. |
| 989 const char kFontCacheSharedMemSuffix[] = "font-cache-shared-mem-suffix"; | 993 const char kFontCacheSharedMemSuffix[] = "font-cache-shared-mem-suffix"; |
| 990 #endif | 994 #endif |
| 991 | 995 |
| 992 // Enables the use of NPAPI plugins. | 996 // Enables the use of NPAPI plugins. |
| 993 const char kEnableNpapi[] = "enable-npapi"; | 997 const char kEnableNpapi[] = "enable-npapi"; |
| 994 | 998 |
| 995 // Don't dump stuff here, follow the same order as the header. | 999 // Don't dump stuff here, follow the same order as the header. |
| 996 | 1000 |
| 997 } // namespace switches | 1001 } // namespace switches |
| OLD | NEW |