OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking); | 997 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking); |
998 | 998 |
999 settings->setStrictlyBlockBlockableMixedContent( | 999 settings->setStrictlyBlockBlockableMixedContent( |
1000 prefs.strictly_block_blockable_mixed_content); | 1000 prefs.strictly_block_blockable_mixed_content); |
1001 | 1001 |
1002 settings->setStrictMixedContentCheckingForPlugin( | 1002 settings->setStrictMixedContentCheckingForPlugin( |
1003 prefs.block_mixed_plugin_content); | 1003 prefs.block_mixed_plugin_content); |
1004 | 1004 |
1005 settings->setStrictPowerfulFeatureRestrictions( | 1005 settings->setStrictPowerfulFeatureRestrictions( |
1006 prefs.strict_powerful_feature_restrictions); | 1006 prefs.strict_powerful_feature_restrictions); |
| 1007 settings->setAllowGeolocationOnInsecureOrigins( |
| 1008 prefs.allow_geolocation_on_insecure_origins); |
1007 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); | 1009 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); |
1008 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); | 1010 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); |
1009 settings->setShouldClearDocumentBackground( | 1011 settings->setShouldClearDocumentBackground( |
1010 prefs.should_clear_document_background); | 1012 prefs.should_clear_document_background); |
1011 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); | 1013 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); |
1012 | 1014 |
1013 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); | 1015 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); |
1014 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); | 1016 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
1015 settings->setAvailablePointerTypes(prefs.available_pointer_types); | 1017 settings->setAvailablePointerTypes(prefs.available_pointer_types); |
1016 settings->setPrimaryPointerType( | 1018 settings->setPrimaryPointerType( |
(...skipping 2704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3721 if (IsUseZoomForDSFEnabled()) { | 3723 if (IsUseZoomForDSFEnabled()) { |
3722 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3724 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
3723 } else { | 3725 } else { |
3724 webview()->setDeviceScaleFactor(device_scale_factor_); | 3726 webview()->setDeviceScaleFactor(device_scale_factor_); |
3725 } | 3727 } |
3726 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3728 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
3727 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3729 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
3728 } | 3730 } |
3729 | 3731 |
3730 } // namespace content | 3732 } // namespace content |
OLD | NEW |