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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 if (command_line.HasSwitch(switches::kDisableDeviceOrientation)) | 111 if (command_line.HasSwitch(switches::kDisableDeviceOrientation)) |
112 WebRuntimeFeatures::enableDeviceOrientation(false); | 112 WebRuntimeFeatures::enableDeviceOrientation(false); |
113 | 113 |
114 if (command_line.HasSwitch(switches::kDisableSpeechInput)) | 114 if (command_line.HasSwitch(switches::kDisableSpeechInput)) |
115 WebRuntimeFeatures::enableSpeechInput(false); | 115 WebRuntimeFeatures::enableSpeechInput(false); |
116 | 116 |
117 if (command_line.HasSwitch(switches::kDisableFileSystem)) | 117 if (command_line.HasSwitch(switches::kDisableFileSystem)) |
118 WebRuntimeFeatures::enableFileSystem(false); | 118 WebRuntimeFeatures::enableFileSystem(false); |
119 | 119 |
120 if (command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)) | |
121 WebRuntimeFeatures::enableJavaScriptI18NAPI(false); | |
122 | |
123 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) | 120 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) |
124 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); | 121 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); |
125 | 122 |
126 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) | 123 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) |
127 WebRuntimeFeatures::enableSpeechSynthesis(true); | 124 WebRuntimeFeatures::enableSpeechSynthesis(true); |
128 | 125 |
129 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) | 126 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) |
130 WebRuntimeFeatures::enableWebGLDraftExtensions(true); | 127 WebRuntimeFeatures::enableWebGLDraftExtensions(true); |
131 } | 128 } |
132 | 129 |
133 } // namespace content | 130 } // namespace content |
OLD | NEW |