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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 WebRuntimeFeatures::enableSpeechSynthesis(true); | 131 WebRuntimeFeatures::enableSpeechSynthesis(true); |
132 | 132 |
133 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) | 133 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) |
134 WebRuntimeFeatures::enableWebGLDraftExtensions(true); | 134 WebRuntimeFeatures::enableWebGLDraftExtensions(true); |
135 | 135 |
136 if (command_line.HasSwitch(switches::kEnableHTMLImports)) | 136 if (command_line.HasSwitch(switches::kEnableHTMLImports)) |
137 WebRuntimeFeatures::enableHTMLImports(true); | 137 WebRuntimeFeatures::enableHTMLImports(true); |
138 | 138 |
139 if (command_line.HasSwitch(switches::kEnableOverlayScrollbars)) | 139 if (command_line.HasSwitch(switches::kEnableOverlayScrollbars)) |
140 WebRuntimeFeatures::enableOverlayScrollbars(true); | 140 WebRuntimeFeatures::enableOverlayScrollbars(true); |
| 141 |
| 142 if (command_line.HasSwitch(switches::kEnableInputModeAttribute)) |
| 143 WebRuntimeFeatures::enableInputModeAttribute(true); |
141 } | 144 } |
142 | 145 |
143 } // namespace content | 146 } // namespace content |
OLD | NEW |