| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(
enable); | 635 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(
enable); |
| 636 } | 636 } |
| 637 | 637 |
| 638 bool WebRuntimeFeatures::isExperimentalContentSecurityPolicyFeaturesEnabled() | 638 bool WebRuntimeFeatures::isExperimentalContentSecurityPolicyFeaturesEnabled() |
| 639 { | 639 { |
| 640 return RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnab
led(); | 640 return RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnab
led(); |
| 641 } | 641 } |
| 642 | 642 |
| 643 void WebRuntimeFeatures::enableSeamlessIFrames(bool enable) | 643 void WebRuntimeFeatures::enableSeamlessIFrames(bool enable) |
| 644 { | 644 { |
| 645 #if ENABLE(IFRAME_SEAMLESS) | |
| 646 return RuntimeEnabledFeatures::setSeamlessIFramesEnabled(enable); | 645 return RuntimeEnabledFeatures::setSeamlessIFramesEnabled(enable); |
| 647 #else | |
| 648 UNUSED_PARAM(enable); | |
| 649 #endif | |
| 650 } | 646 } |
| 651 | 647 |
| 652 bool WebRuntimeFeatures::areSeamlessIFramesEnabled() | 648 bool WebRuntimeFeatures::areSeamlessIFramesEnabled() |
| 653 { | 649 { |
| 654 #if ENABLE(IFRAME_SEAMLESS) | |
| 655 return RuntimeEnabledFeatures::seamlessIFramesEnabled(); | 650 return RuntimeEnabledFeatures::seamlessIFramesEnabled(); |
| 656 #else | |
| 657 return false; | |
| 658 #endif | |
| 659 } | 651 } |
| 660 | 652 |
| 661 void WebRuntimeFeatures::enableCanvasPath(bool enable) | 653 void WebRuntimeFeatures::enableCanvasPath(bool enable) |
| 662 { | 654 { |
| 663 RuntimeEnabledFeatures::setCanvasPathEnabled(enable); | 655 RuntimeEnabledFeatures::setCanvasPathEnabled(enable); |
| 664 } | 656 } |
| 665 | 657 |
| 666 bool WebRuntimeFeatures::isCanvasPathEnabled() | 658 bool WebRuntimeFeatures::isCanvasPathEnabled() |
| 667 { | 659 { |
| 668 return RuntimeEnabledFeatures::canvasPathEnabled(); | 660 return RuntimeEnabledFeatures::canvasPathEnabled(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() | 712 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() |
| 721 { | 713 { |
| 722 #if ENABLE(REQUEST_AUTOCOMPLETE) | 714 #if ENABLE(REQUEST_AUTOCOMPLETE) |
| 723 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); | 715 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); |
| 724 #else | 716 #else |
| 725 return false; | 717 return false; |
| 726 #endif | 718 #endif |
| 727 } | 719 } |
| 728 | 720 |
| 729 } // namespace WebKit | 721 } // namespace WebKit |
| OLD | NEW |