| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void WebRuntimeFeatures::enableApplicationCache(bool enable) | 60 void WebRuntimeFeatures::enableApplicationCache(bool enable) |
| 61 { | 61 { |
| 62 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable); | 62 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void WebRuntimeFeatures::enableDatabase(bool enable) | 65 void WebRuntimeFeatures::enableDatabase(bool enable) |
| 66 { | 66 { |
| 67 RuntimeEnabledFeatures::setDatabaseEnabled(enable); | 67 RuntimeEnabledFeatures::setDatabaseEnabled(enable); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void WebRuntimeFeatures::enableDialogElement(bool enable) | |
| 71 { | |
| 72 RuntimeEnabledFeatures::setDialogElementEnabled(enable); | |
| 73 } | |
| 74 | |
| 75 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) | 70 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) |
| 76 { | 71 { |
| 77 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); | 72 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); |
| 78 // FIXME: Hack to allow MediaKeyError to be enabled for either version. | 73 // FIXME: Hack to allow MediaKeyError to be enabled for either version. |
| 79 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( | 74 RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled( |
| 80 RuntimeEnabledFeatures::encryptedMediaEnabled() | 75 RuntimeEnabledFeatures::encryptedMediaEnabled() |
| 81 || RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled()); | 76 || RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled()); |
| 82 } | 77 } |
| 83 | 78 |
| 84 bool WebRuntimeFeatures::isEncryptedMediaEnabled() | 79 bool WebRuntimeFeatures::isEncryptedMediaEnabled() |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 void WebRuntimeFeatures::enableWebGLImageChromium(bool enable) | 228 void WebRuntimeFeatures::enableWebGLImageChromium(bool enable) |
| 234 { | 229 { |
| 235 RuntimeEnabledFeatures::setWebGLImageChromiumEnabled(enable); | 230 RuntimeEnabledFeatures::setWebGLImageChromiumEnabled(enable); |
| 236 } | 231 } |
| 237 | 232 |
| 238 void WebRuntimeFeatures::enableWebMIDI(bool enable) | 233 void WebRuntimeFeatures::enableWebMIDI(bool enable) |
| 239 { | 234 { |
| 240 return RuntimeEnabledFeatures::setWebMIDIEnabled(enable); | 235 return RuntimeEnabledFeatures::setWebMIDIEnabled(enable); |
| 241 } | 236 } |
| 242 | 237 |
| 243 void WebRuntimeFeatures::enableHTMLImports(bool enable) | |
| 244 { | |
| 245 RuntimeEnabledFeatures::setHTMLImportsEnabled(enable); | |
| 246 } | |
| 247 | |
| 248 void WebRuntimeFeatures::enableXSLT(bool enable) | 238 void WebRuntimeFeatures::enableXSLT(bool enable) |
| 249 { | 239 { |
| 250 RuntimeEnabledFeatures::setXSLTEnabled(enable); | 240 RuntimeEnabledFeatures::setXSLTEnabled(enable); |
| 251 } | 241 } |
| 252 | 242 |
| 253 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) | 243 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) |
| 254 { | 244 { |
| 255 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable); | 245 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable); |
| 256 } | 246 } |
| 257 | 247 |
| 258 void WebRuntimeFeatures::enableOverlayFullscreenVideo(bool enable) | 248 void WebRuntimeFeatures::enableOverlayFullscreenVideo(bool enable) |
| 259 { | 249 { |
| 260 RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(enable); | 250 RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(enable); |
| 261 } | 251 } |
| 262 | 252 |
| 263 void WebRuntimeFeatures::enableSharedWorker(bool enable) | 253 void WebRuntimeFeatures::enableSharedWorker(bool enable) |
| 264 { | 254 { |
| 265 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); | 255 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); |
| 266 } | 256 } |
| 267 | 257 |
| 268 void WebRuntimeFeatures::enableExperimentalWebSocket(bool enable) | |
| 269 { | |
| 270 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | |
| 271 } | |
| 272 | |
| 273 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) | 258 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) |
| 274 { | 259 { |
| 275 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); | 260 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); |
| 276 } | 261 } |
| 277 | 262 |
| 278 void WebRuntimeFeatures::enablePreciseMemoryInfo(bool enable) | 263 void WebRuntimeFeatures::enablePreciseMemoryInfo(bool enable) |
| 279 { | 264 { |
| 280 RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(enable); | 265 RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(enable); |
| 281 } | 266 } |
| 282 | 267 |
| 283 void WebRuntimeFeatures::enableLayerSquashing(bool enable) | 268 void WebRuntimeFeatures::enableLayerSquashing(bool enable) |
| 284 { | 269 { |
| 285 RuntimeEnabledFeatures::setLayerSquashingEnabled(enable); | 270 RuntimeEnabledFeatures::setLayerSquashingEnabled(enable); |
| 286 } | 271 } |
| 287 | 272 |
| 288 void WebRuntimeFeatures::enableShowModalDialog(bool enable) | 273 void WebRuntimeFeatures::enableShowModalDialog(bool enable) |
| 289 { | 274 { |
| 290 RuntimeEnabledFeatures::setShowModalDialogEnabled(enable); | 275 RuntimeEnabledFeatures::setShowModalDialogEnabled(enable); |
| 291 } | 276 } |
| 292 | 277 |
| 293 void WebRuntimeFeatures::enableLaxMixedContentChecking(bool enable) | 278 void WebRuntimeFeatures::enableLaxMixedContentChecking(bool enable) |
| 294 { | 279 { |
| 295 RuntimeEnabledFeatures::setLaxMixedContentCheckingEnabled(enable); | 280 RuntimeEnabledFeatures::setLaxMixedContentCheckingEnabled(enable); |
| 296 } | 281 } |
| 297 | 282 |
| 298 } // namespace blink | 283 } // namespace blink |
| OLD | NEW |