| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 | 133 |
| 134 void WebSettingsImpl::SetMinimumFontSize(int size) { | 134 void WebSettingsImpl::SetMinimumFontSize(int size) { |
| 135 settings_->SetMinimumFontSize(size); | 135 settings_->SetMinimumFontSize(size); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void WebSettingsImpl::SetMinimumLogicalFontSize(int size) { | 138 void WebSettingsImpl::SetMinimumLogicalFontSize(int size) { |
| 139 settings_->SetMinimumLogicalFontSize(size); | 139 settings_->SetMinimumLogicalFontSize(size); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void WebSettingsImpl::SetAutoplayPolicy(AutoplayPolicy policy) { |
| 143 settings_->SetAutoplayPolicy( |
| 144 static_cast<blink::AutoplayPolicy::Type>(policy)); |
| 145 } |
| 146 |
| 142 void WebSettingsImpl::SetAutoZoomFocusedNodeToLegibleScale( | 147 void WebSettingsImpl::SetAutoZoomFocusedNodeToLegibleScale( |
| 143 bool auto_zoom_focused_node_to_legible_scale) { | 148 bool auto_zoom_focused_node_to_legible_scale) { |
| 144 auto_zoom_focused_node_to_legible_scale_ = | 149 auto_zoom_focused_node_to_legible_scale_ = |
| 145 auto_zoom_focused_node_to_legible_scale; | 150 auto_zoom_focused_node_to_legible_scale; |
| 146 } | 151 } |
| 147 | 152 |
| 148 void WebSettingsImpl::SetBrowserSideNavigationEnabled(bool enabled) { | 153 void WebSettingsImpl::SetBrowserSideNavigationEnabled(bool enabled) { |
| 149 settings_->SetBrowserSideNavigationEnabled(enabled); | 154 settings_->SetBrowserSideNavigationEnabled(enabled); |
| 150 } | 155 } |
| 151 | 156 |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 } | 621 } |
| 617 | 622 |
| 618 bool WebSettingsImpl::ShrinksViewportContentToFit() const { | 623 bool WebSettingsImpl::ShrinksViewportContentToFit() const { |
| 619 return shrinks_viewport_content_to_fit_; | 624 return shrinks_viewport_content_to_fit_; |
| 620 } | 625 } |
| 621 | 626 |
| 622 void WebSettingsImpl::SetShouldRespectImageOrientation(bool enabled) { | 627 void WebSettingsImpl::SetShouldRespectImageOrientation(bool enabled) { |
| 623 settings_->SetShouldRespectImageOrientation(enabled); | 628 settings_->SetShouldRespectImageOrientation(enabled); |
| 624 } | 629 } |
| 625 | 630 |
| 626 void WebSettingsImpl::SetMediaPlaybackRequiresUserGesture(bool required) { | |
| 627 settings_->SetMediaPlaybackRequiresUserGesture(required); | |
| 628 } | |
| 629 | |
| 630 void WebSettingsImpl::SetMediaPlaybackGestureWhitelistScope( | 631 void WebSettingsImpl::SetMediaPlaybackGestureWhitelistScope( |
| 631 const WebString& scope) { | 632 const WebString& scope) { |
| 632 settings_->SetMediaPlaybackGestureWhitelistScope(scope); | 633 settings_->SetMediaPlaybackGestureWhitelistScope(scope); |
| 633 } | 634 } |
| 634 | 635 |
| 635 void WebSettingsImpl::SetPresentationRequiresUserGesture(bool required) { | 636 void WebSettingsImpl::SetPresentationRequiresUserGesture(bool required) { |
| 636 settings_->SetPresentationRequiresUserGesture(required); | 637 settings_->SetPresentationRequiresUserGesture(required); |
| 637 } | 638 } |
| 638 | 639 |
| 639 void WebSettingsImpl::SetEmbeddedMediaExperienceEnabled(bool enabled) { | 640 void WebSettingsImpl::SetEmbeddedMediaExperienceEnabled(bool enabled) { |
| 640 settings_->SetEmbeddedMediaExperienceEnabled(enabled); | 641 settings_->SetEmbeddedMediaExperienceEnabled(enabled); |
| 641 } | 642 } |
| 642 | 643 |
| 643 void WebSettingsImpl::SetViewportEnabled(bool enabled) { | 644 void WebSettingsImpl::SetViewportEnabled(bool enabled) { |
| 644 settings_->SetViewportEnabled(enabled); | 645 settings_->SetViewportEnabled(enabled); |
| 645 } | 646 } |
| 646 | 647 |
| 647 void WebSettingsImpl::SetViewportMetaEnabled(bool enabled) { | 648 void WebSettingsImpl::SetViewportMetaEnabled(bool enabled) { |
| 648 settings_->SetViewportMetaEnabled(enabled); | 649 settings_->SetViewportMetaEnabled(enabled); |
| 649 } | 650 } |
| 650 | 651 |
| 651 void WebSettingsImpl::SetSyncXHRInDocumentsEnabled(bool enabled) { | 652 void WebSettingsImpl::SetSyncXHRInDocumentsEnabled(bool enabled) { |
| 652 settings_->SetSyncXHRInDocumentsEnabled(enabled); | 653 settings_->SetSyncXHRInDocumentsEnabled(enabled); |
| 653 } | 654 } |
| 654 | 655 |
| 655 void WebSettingsImpl::SetCookieEnabled(bool enabled) { | 656 void WebSettingsImpl::SetCookieEnabled(bool enabled) { |
| 656 settings_->SetCookieEnabled(enabled); | 657 settings_->SetCookieEnabled(enabled); |
| 657 } | 658 } |
| 658 | 659 |
| 659 void WebSettingsImpl::SetCrossOriginMediaPlaybackRequiresUserGesture( | |
| 660 bool required) { | |
| 661 settings_->SetCrossOriginMediaPlaybackRequiresUserGesture(required); | |
| 662 } | |
| 663 | |
| 664 void WebSettingsImpl::SetNavigateOnDragDrop(bool enabled) { | 660 void WebSettingsImpl::SetNavigateOnDragDrop(bool enabled) { |
| 665 settings_->SetNavigateOnDragDrop(enabled); | 661 settings_->SetNavigateOnDragDrop(enabled); |
| 666 } | 662 } |
| 667 | 663 |
| 668 void WebSettingsImpl::SetAllowCustomScrollbarInMainFrame(bool enabled) { | 664 void WebSettingsImpl::SetAllowCustomScrollbarInMainFrame(bool enabled) { |
| 669 settings_->SetAllowCustomScrollbarInMainFrame(enabled); | 665 settings_->SetAllowCustomScrollbarInMainFrame(enabled); |
| 670 } | 666 } |
| 671 | 667 |
| 672 void WebSettingsImpl::SetSelectTrailingWhitespaceEnabled(bool enabled) { | 668 void WebSettingsImpl::SetSelectTrailingWhitespaceEnabled(bool enabled) { |
| 673 settings_->SetSelectTrailingWhitespaceEnabled(enabled); | 669 settings_->SetSelectTrailingWhitespaceEnabled(enabled); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 void WebSettingsImpl::SetMediaControlsEnabled(bool enabled) { | 726 void WebSettingsImpl::SetMediaControlsEnabled(bool enabled) { |
| 731 settings_->SetMediaControlsEnabled(enabled); | 727 settings_->SetMediaControlsEnabled(enabled); |
| 732 } | 728 } |
| 733 | 729 |
| 734 void WebSettingsImpl::SetDoNotUpdateSelectionOnMutatingSelectionRange( | 730 void WebSettingsImpl::SetDoNotUpdateSelectionOnMutatingSelectionRange( |
| 735 bool enabled) { | 731 bool enabled) { |
| 736 settings_->SetDoNotUpdateSelectionOnMutatingSelectionRange(enabled); | 732 settings_->SetDoNotUpdateSelectionOnMutatingSelectionRange(enabled); |
| 737 } | 733 } |
| 738 | 734 |
| 739 } // namespace blink | 735 } // namespace blink |
| OLD | NEW |