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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 { | 657 { |
658 #if ENABLE(CSP_NEXT) | 658 #if ENABLE(CSP_NEXT) |
659 return RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnab
led(); | 659 return RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnab
led(); |
660 #else | 660 #else |
661 return false; | 661 return false; |
662 #endif | 662 #endif |
663 } | 663 } |
664 | 664 |
665 void WebRuntimeFeatures::enableSeamlessIFrames(bool enable) | 665 void WebRuntimeFeatures::enableSeamlessIFrames(bool enable) |
666 { | 666 { |
667 #if ENABLE(IFRAME_SEAMLESS) | |
668 return RuntimeEnabledFeatures::setSeamlessIFramesEnabled(enable); | 667 return RuntimeEnabledFeatures::setSeamlessIFramesEnabled(enable); |
669 #else | |
670 UNUSED_PARAM(enable); | |
671 #endif | |
672 } | 668 } |
673 | 669 |
674 bool WebRuntimeFeatures::areSeamlessIFramesEnabled() | 670 bool WebRuntimeFeatures::areSeamlessIFramesEnabled() |
675 { | 671 { |
676 #if ENABLE(IFRAME_SEAMLESS) | |
677 return RuntimeEnabledFeatures::seamlessIFramesEnabled(); | 672 return RuntimeEnabledFeatures::seamlessIFramesEnabled(); |
678 #else | |
679 return false; | |
680 #endif | |
681 } | 673 } |
682 | 674 |
683 void WebRuntimeFeatures::enableCanvasPath(bool enable) | 675 void WebRuntimeFeatures::enableCanvasPath(bool enable) |
684 { | 676 { |
685 RuntimeEnabledFeatures::setCanvasPathEnabled(enable); | 677 RuntimeEnabledFeatures::setCanvasPathEnabled(enable); |
686 } | 678 } |
687 | 679 |
688 bool WebRuntimeFeatures::isCanvasPathEnabled() | 680 bool WebRuntimeFeatures::isCanvasPathEnabled() |
689 { | 681 { |
690 return RuntimeEnabledFeatures::canvasPathEnabled(); | 682 return RuntimeEnabledFeatures::canvasPathEnabled(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() | 734 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() |
743 { | 735 { |
744 #if ENABLE(REQUEST_AUTOCOMPLETE) | 736 #if ENABLE(REQUEST_AUTOCOMPLETE) |
745 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); | 737 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); |
746 #else | 738 #else |
747 return false; | 739 return false; |
748 #endif | 740 #endif |
749 } | 741 } |
750 | 742 |
751 } // namespace WebKit | 743 } // namespace WebKit |
OLD | NEW |