| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 void WebRuntimeFeatures::enableHTMLImports(bool enable) | 370 void WebRuntimeFeatures::enableHTMLImports(bool enable) |
| 371 { | 371 { |
| 372 RuntimeEnabledFeatures::setHTMLImportsEnabled(enable); | 372 RuntimeEnabledFeatures::setHTMLImportsEnabled(enable); |
| 373 } | 373 } |
| 374 | 374 |
| 375 bool WebRuntimeFeatures::isHTMLImportsEnabled() | 375 bool WebRuntimeFeatures::isHTMLImportsEnabled() |
| 376 { | 376 { |
| 377 return RuntimeEnabledFeatures::htmlImportsEnabled(); | 377 return RuntimeEnabledFeatures::htmlImportsEnabled(); |
| 378 } | 378 } |
| 379 | 379 |
| 380 void WebRuntimeFeatures::enableNavigatorContentUtils(bool enable) |
| 381 { |
| 382 #if ENABLE(NAVIGATOR_CONTENT_UTILS) |
| 383 RuntimeEnabledFeatures::setNavigatorContentUtilsEnabled(enable); |
| 384 #endif |
| 385 } |
| 386 |
| 387 bool WebRuntimeFeatures::isNavigatorContentUtilsEnabled() |
| 388 { |
| 389 #if ENABLE(NAVIGATOR_CONTENT_UTILS) |
| 390 return RuntimeEnabledFeatures::navigatorContentUtilsEnabled(); |
| 391 #else |
| 392 return false; |
| 393 #endif |
| 394 } |
| 395 |
| 380 void WebRuntimeFeatures::enableCustomElements(bool enable) | 396 void WebRuntimeFeatures::enableCustomElements(bool enable) |
| 381 { | 397 { |
| 382 RuntimeEnabledFeatures::setCustomElementsEnabled(enable); | 398 RuntimeEnabledFeatures::setCustomElementsEnabled(enable); |
| 383 } | 399 } |
| 384 | 400 |
| 385 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) | 401 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) |
| 386 { | 402 { |
| 387 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable); | 403 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable); |
| 388 } | 404 } |
| 389 | 405 |
| 390 } // namespace WebKit | 406 } // namespace WebKit |
| OLD | NEW |