| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void WebRuntimeFeatures::enableFileSystem(bool enable) | 118 void WebRuntimeFeatures::enableFileSystem(bool enable) |
| 119 { | 119 { |
| 120 RuntimeEnabledFeatures::setFileSystemEnabled(enable); | 120 RuntimeEnabledFeatures::setFileSystemEnabled(enable); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void WebRuntimeFeatures::enableGamepad(bool enable) | 123 void WebRuntimeFeatures::enableGamepad(bool enable) |
| 124 { | 124 { |
| 125 RuntimeEnabledFeatures::setGamepadEnabled(enable); | 125 RuntimeEnabledFeatures::setGamepadEnabled(enable); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void WebRuntimeFeatures::enableLazyLayout(bool enable) | |
| 129 { | |
| 130 // FIXME: Remove this once Chromium stops calling this. | |
| 131 } | |
| 132 | |
| 133 void WebRuntimeFeatures::enableLocalStorage(bool enable) | 128 void WebRuntimeFeatures::enableLocalStorage(bool enable) |
| 134 { | 129 { |
| 135 RuntimeEnabledFeatures::setLocalStorageEnabled(enable); | 130 RuntimeEnabledFeatures::setLocalStorageEnabled(enable); |
| 136 } | 131 } |
| 137 | 132 |
| 138 void WebRuntimeFeatures::enableMediaPlayer(bool enable) | 133 void WebRuntimeFeatures::enableMediaPlayer(bool enable) |
| 139 { | 134 { |
| 140 RuntimeEnabledFeatures::setMediaEnabled(enable); | 135 RuntimeEnabledFeatures::setMediaEnabled(enable); |
| 141 } | 136 } |
| 142 | 137 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void WebRuntimeFeatures::enableTouch(bool enable) | 203 void WebRuntimeFeatures::enableTouch(bool enable) |
| 209 { | 204 { |
| 210 RuntimeEnabledFeatures::setTouchEnabled(enable); | 205 RuntimeEnabledFeatures::setTouchEnabled(enable); |
| 211 } | 206 } |
| 212 | 207 |
| 213 void WebRuntimeFeatures::enableTouchIconLoading(bool enable) | 208 void WebRuntimeFeatures::enableTouchIconLoading(bool enable) |
| 214 { | 209 { |
| 215 RuntimeEnabledFeatures::setTouchIconLoadingEnabled(enable); | 210 RuntimeEnabledFeatures::setTouchIconLoadingEnabled(enable); |
| 216 } | 211 } |
| 217 | 212 |
| 218 void WebRuntimeFeatures::enableWebAnimationsCSS(bool enable) | |
| 219 { | |
| 220 // FIXME: Remove this method once the runtime flags are removed from Chromiu
m. | |
| 221 ASSERT(enable); | |
| 222 } | |
| 223 | |
| 224 void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable) | 213 void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable) |
| 225 { | 214 { |
| 226 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable); | 215 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable); |
| 227 } | 216 } |
| 228 | 217 |
| 229 void WebRuntimeFeatures::enableWebAudio(bool enable) | 218 void WebRuntimeFeatures::enableWebAudio(bool enable) |
| 230 { | 219 { |
| 231 RuntimeEnabledFeatures::setWebAudioEnabled(enable); | 220 RuntimeEnabledFeatures::setWebAudioEnabled(enable); |
| 232 } | 221 } |
| 233 | 222 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 { | 279 { |
| 291 RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(enable); | 280 RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(enable); |
| 292 } | 281 } |
| 293 | 282 |
| 294 void WebRuntimeFeatures::enableLayerSquashing(bool enable) | 283 void WebRuntimeFeatures::enableLayerSquashing(bool enable) |
| 295 { | 284 { |
| 296 RuntimeEnabledFeatures::setLayerSquashingEnabled(enable); | 285 RuntimeEnabledFeatures::setLayerSquashingEnabled(enable); |
| 297 } | 286 } |
| 298 | 287 |
| 299 } // namespace blink | 288 } // namespace blink |
| OLD | NEW |