OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/runtime_features.h" | 5 #include "content/child/runtime_features.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 if (command_line.HasSwitch(switches::kDisableFullScreen)) | 90 if (command_line.HasSwitch(switches::kDisableFullScreen)) |
91 WebRuntimeFeatures::enableFullscreen(false); | 91 WebRuntimeFeatures::enableFullscreen(false); |
92 | 92 |
93 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) | 93 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) |
94 WebRuntimeFeatures::enableEncryptedMedia(true); | 94 WebRuntimeFeatures::enableEncryptedMedia(true); |
95 | 95 |
96 if (command_line.HasSwitch(switches::kDisableLegacyEncryptedMedia)) | 96 if (command_line.HasSwitch(switches::kDisableLegacyEncryptedMedia)) |
97 WebRuntimeFeatures::enableLegacyEncryptedMedia(false); | 97 WebRuntimeFeatures::enableLegacyEncryptedMedia(false); |
98 | 98 |
| 99 if (command_line.HasSwitch(switches::kEnableWebAnimationsCSS)) |
| 100 WebRuntimeFeatures::enableWebAnimationsCSS(); |
| 101 |
| 102 if (command_line.HasSwitch(switches::kEnableWebAnimationsSVG)) |
| 103 WebRuntimeFeatures::enableWebAnimationsSVG(); |
| 104 |
99 if (command_line.HasSwitch(switches::kEnableWebMIDI)) | 105 if (command_line.HasSwitch(switches::kEnableWebMIDI)) |
100 WebRuntimeFeatures::enableWebMIDI(true); | 106 WebRuntimeFeatures::enableWebMIDI(true); |
101 | 107 |
102 if (command_line.HasSwitch(switches::kEnableDeviceMotion)) | 108 if (command_line.HasSwitch(switches::kEnableDeviceMotion)) |
103 WebRuntimeFeatures::enableDeviceMotion(true); | 109 WebRuntimeFeatures::enableDeviceMotion(true); |
104 | 110 |
105 if (command_line.HasSwitch(switches::kDisableDeviceOrientation)) | 111 if (command_line.HasSwitch(switches::kDisableDeviceOrientation)) |
106 WebRuntimeFeatures::enableDeviceOrientation(false); | 112 WebRuntimeFeatures::enableDeviceOrientation(false); |
107 | 113 |
108 if (command_line.HasSwitch(switches::kDisableSpeechInput)) | 114 if (command_line.HasSwitch(switches::kDisableSpeechInput)) |
109 WebRuntimeFeatures::enableSpeechInput(false); | 115 WebRuntimeFeatures::enableSpeechInput(false); |
110 | 116 |
111 if (command_line.HasSwitch(switches::kDisableFileSystem)) | 117 if (command_line.HasSwitch(switches::kDisableFileSystem)) |
112 WebRuntimeFeatures::enableFileSystem(false); | 118 WebRuntimeFeatures::enableFileSystem(false); |
113 | 119 |
114 if (command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)) | 120 if (command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)) |
115 WebRuntimeFeatures::enableJavaScriptI18NAPI(false); | 121 WebRuntimeFeatures::enableJavaScriptI18NAPI(false); |
116 | 122 |
117 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) | 123 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) |
118 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); | 124 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); |
119 | 125 |
120 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) | 126 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) |
121 WebRuntimeFeatures::enableSpeechSynthesis(true); | 127 WebRuntimeFeatures::enableSpeechSynthesis(true); |
122 | 128 |
123 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) | 129 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) |
124 WebRuntimeFeatures::enableWebGLDraftExtensions(true); | 130 WebRuntimeFeatures::enableWebGLDraftExtensions(true); |
125 } | 131 } |
126 | 132 |
127 } // namespace content | 133 } // namespace content |
OLD | NEW |