| 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 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Disable rasterizer that writes directly to GPU memory. | 192 // Disable rasterizer that writes directly to GPU memory. |
| 193 // Overrides the kEnableOneCopy flag. | 193 // Overrides the kEnableOneCopy flag. |
| 194 const char kDisableOneCopy[] = "disable-one-copy"; | 194 const char kDisableOneCopy[] = "disable-one-copy"; |
| 195 | 195 |
| 196 // Disable Pepper3D. | 196 // Disable Pepper3D. |
| 197 const char kDisablePepper3d[] = "disable-pepper-3d"; | 197 const char kDisablePepper3d[] = "disable-pepper-3d"; |
| 198 | 198 |
| 199 // Disables compositor-accelerated touch-screen pinch gestures. | 199 // Disables compositor-accelerated touch-screen pinch gestures. |
| 200 const char kDisablePinch[] = "disable-pinch"; | 200 const char kDisablePinch[] = "disable-pinch"; |
| 201 | 201 |
| 202 // Prevent plugins from running. | |
| 203 const char kDisablePlugins[] = "disable-plugins"; | |
| 204 | |
| 205 // Disable discovering third-party plug-ins. Effectively loading only | 202 // Disable discovering third-party plug-ins. Effectively loading only |
| 206 // ones shipped with the browser plus third-party ones as specified by | 203 // ones shipped with the browser plus third-party ones as specified by |
| 207 // --extra-plugin-dir and --load-plugin switches. | 204 // --extra-plugin-dir and --load-plugin switches. |
| 208 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery"; | 205 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery"; |
| 209 | 206 |
| 210 // Disables remote web font support. SVG font should always work whether this | 207 // Disables remote web font support. SVG font should always work whether this |
| 211 // option is specified or not. | 208 // option is specified or not. |
| 212 const char kDisableRemoteFonts[] = "disable-remote-fonts"; | 209 const char kDisableRemoteFonts[] = "disable-remote-fonts"; |
| 213 | 210 |
| 214 // Turns off the accessibility in the renderer. | 211 // Turns off the accessibility in the renderer. |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) | 967 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) |
| 971 return false; | 968 return false; |
| 972 // Default. | 969 // Default. |
| 973 return group_name == "Enabled"; | 970 return group_name == "Enabled"; |
| 974 } | 971 } |
| 975 #endif | 972 #endif |
| 976 | 973 |
| 977 // Don't dump stuff here, follow the same order as the header. | 974 // Don't dump stuff here, follow the same order as the header. |
| 978 | 975 |
| 979 } // namespace switches | 976 } // namespace switches |
| OLD | NEW |