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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 void WebRuntimeFeatures::enableHTMLImports(bool enable) | 380 void WebRuntimeFeatures::enableHTMLImports(bool enable) |
381 { | 381 { |
382 RuntimeEnabledFeatures::setHTMLImportsEnabled(enable); | 382 RuntimeEnabledFeatures::setHTMLImportsEnabled(enable); |
383 } | 383 } |
384 | 384 |
385 bool WebRuntimeFeatures::isHTMLImportsEnabled() | 385 bool WebRuntimeFeatures::isHTMLImportsEnabled() |
386 { | 386 { |
387 return RuntimeEnabledFeatures::htmlImportsEnabled(); | 387 return RuntimeEnabledFeatures::htmlImportsEnabled(); |
388 } | 388 } |
389 | 389 |
| 390 void WebRuntimeFeatures::enableCustomSchemeHandler(bool enable) |
| 391 { |
| 392 #if ENABLE(CUSTOM_SCHEME_HANDLER) |
| 393 RuntimeEnabledFeatures::setCustomSchemeHandlerEnabled(enable); |
| 394 #endif |
| 395 } |
| 396 |
| 397 bool WebRuntimeFeatures::isCustomSchemeHandlerEnabled() |
| 398 { |
| 399 #if ENABLE(CUSTOM_SCHEME_HANDLER) |
| 400 return RuntimeEnabledFeatures::customSchemeHandlerEnabled(); |
| 401 #else |
| 402 return false; |
| 403 #endif |
| 404 } |
| 405 |
390 // FIXME: Remove this when embedders switch to enableEmbedderCustomElements. | 406 // FIXME: Remove this when embedders switch to enableEmbedderCustomElements. |
391 void WebRuntimeFeatures::enableCustomElements(bool enable) | 407 void WebRuntimeFeatures::enableCustomElements(bool enable) |
392 { | 408 { |
393 RuntimeEnabledFeatures::setCustomElementsEnabled(enable); | 409 RuntimeEnabledFeatures::setCustomElementsEnabled(enable); |
394 enableEmbedderCustomElements(enable); | 410 enableEmbedderCustomElements(enable); |
395 } | 411 } |
396 | 412 |
397 void WebRuntimeFeatures::enableEmbedderCustomElements(bool enable) | 413 void WebRuntimeFeatures::enableEmbedderCustomElements(bool enable) |
398 { | 414 { |
399 RuntimeEnabledFeatures::setEmbedderCustomElementsEnabled(enable); | 415 RuntimeEnabledFeatures::setEmbedderCustomElementsEnabled(enable); |
400 } | 416 } |
401 | 417 |
402 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) | 418 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) |
403 { | 419 { |
404 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable); | 420 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable); |
405 } | 421 } |
406 | 422 |
407 } // namespace WebKit | 423 } // namespace WebKit |
OLD | NEW |