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/common/content_switches_internal.h" | 8 #include "content/common/content_switches_internal.h" |
9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
10 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 10 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 !command_line.HasSwitch(switches::kDisableWebAudio) && | 110 !command_line.HasSwitch(switches::kDisableWebAudio) && |
111 media::MediaCodecBridge::IsAvailable()); | 111 media::MediaCodecBridge::IsAvailable()); |
112 #else | 112 #else |
113 WebRuntimeFeatures::enableWebAudio(false); | 113 WebRuntimeFeatures::enableWebAudio(false); |
114 #endif | 114 #endif |
115 #else | 115 #else |
116 if (command_line.HasSwitch(switches::kDisableWebAudio)) | 116 if (command_line.HasSwitch(switches::kDisableWebAudio)) |
117 WebRuntimeFeatures::enableWebAudio(false); | 117 WebRuntimeFeatures::enableWebAudio(false); |
118 #endif | 118 #endif |
119 | 119 |
120 if (command_line.HasSwitch(switches::kDisableFullScreen)) | |
121 WebRuntimeFeatures::enableFullscreen(false); | |
122 | |
123 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) | 120 if (command_line.HasSwitch(switches::kEnableEncryptedMedia)) |
124 WebRuntimeFeatures::enableEncryptedMedia(true); | 121 WebRuntimeFeatures::enableEncryptedMedia(true); |
125 | 122 |
126 if (command_line.HasSwitch(switches::kDisablePrefixedEncryptedMedia)) | 123 if (command_line.HasSwitch(switches::kDisablePrefixedEncryptedMedia)) |
127 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); | 124 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); |
128 | 125 |
129 // FIXME: Remove the enable switch once Web Animations CSS is enabled by | 126 // FIXME: Remove the enable switch once Web Animations CSS is enabled by |
130 // default in Blink. | 127 // default in Blink. |
131 if (command_line.HasSwitch(switches::kEnableWebAnimationsCSS)) | 128 if (command_line.HasSwitch(switches::kEnableWebAnimationsCSS)) |
132 WebRuntimeFeatures::enableWebAnimationsCSS(true); | 129 WebRuntimeFeatures::enableWebAnimationsCSS(true); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 WebRuntimeFeatures::enableRepaintAfterLayout(false); | 175 WebRuntimeFeatures::enableRepaintAfterLayout(false); |
179 | 176 |
180 if (command_line.HasSwitch(switches::kEnableRepaintAfterLayout)) | 177 if (command_line.HasSwitch(switches::kEnableRepaintAfterLayout)) |
181 WebRuntimeFeatures::enableRepaintAfterLayout(true); | 178 WebRuntimeFeatures::enableRepaintAfterLayout(true); |
182 | 179 |
183 if (command_line.HasSwitch(switches::kEnableTargetedStyleRecalc)) | 180 if (command_line.HasSwitch(switches::kEnableTargetedStyleRecalc)) |
184 WebRuntimeFeatures::enableTargetedStyleRecalc(true); | 181 WebRuntimeFeatures::enableTargetedStyleRecalc(true); |
185 } | 182 } |
186 | 183 |
187 } // namespace content | 184 } // namespace content |
OLD | NEW |