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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 // Disable multithreaded, compositor scrolling of web content. | 248 // Disable multithreaded, compositor scrolling of web content. |
249 const char kDisableThreadedScrolling[] = "disable-threaded-scrolling"; | 249 const char kDisableThreadedScrolling[] = "disable-threaded-scrolling"; |
250 | 250 |
251 // Disable V8 idle tasks. | 251 // Disable V8 idle tasks. |
252 const char kDisableV8IdleTasks[] = "disable-v8-idle-tasks"; | 252 const char kDisableV8IdleTasks[] = "disable-v8-idle-tasks"; |
253 | 253 |
254 // Don't enforce the same-origin policy. (Used by people testing their sites.) | 254 // Don't enforce the same-origin policy. (Used by people testing their sites.) |
255 const char kDisableWebSecurity[] = "disable-web-security"; | 255 const char kDisableWebSecurity[] = "disable-web-security"; |
256 | 256 |
257 // Disables support for XSLT. | |
258 const char kDisableXSLT[] = "disable-xslt"; | |
259 | |
260 // Specifies if the |DOMAutomationController| needs to be bound in the | 257 // Specifies if the |DOMAutomationController| needs to be bound in the |
261 // renderer. This binding happens on per-frame basis and hence can potentially | 258 // renderer. This binding happens on per-frame basis and hence can potentially |
262 // be a performance bottleneck. One should only enable it when automating dom | 259 // be a performance bottleneck. One should only enable it when automating dom |
263 // based tests. | 260 // based tests. |
264 const char kDomAutomationController[] = "dom-automation"; | 261 const char kDomAutomationController[] = "dom-automation"; |
265 | 262 |
266 // Enable antialiasing on 2d canvas clips (as opposed to draw operations) | 263 // Enable antialiasing on 2d canvas clips (as opposed to draw operations) |
267 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa"; | 264 const char kEnable2dCanvasClipAntialiasing[] = "enable-2d-canvas-clip-aa"; |
268 | 265 |
269 // Disable partially decoding jpeg images using the GPU. | 266 // Disable partially decoding jpeg images using the GPU. |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) | 973 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) |
977 return false; | 974 return false; |
978 // Default. | 975 // Default. |
979 return group_name == "Enabled"; | 976 return group_name == "Enabled"; |
980 } | 977 } |
981 #endif | 978 #endif |
982 | 979 |
983 // Don't dump stuff here, follow the same order as the header. | 980 // Don't dump stuff here, follow the same order as the header. |
984 | 981 |
985 } // namespace switches | 982 } // namespace switches |
OLD | NEW |