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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking); | 998 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking); |
999 | 999 |
1000 settings->setStrictlyBlockBlockableMixedContent( | 1000 settings->setStrictlyBlockBlockableMixedContent( |
1001 prefs.strictly_block_blockable_mixed_content); | 1001 prefs.strictly_block_blockable_mixed_content); |
1002 | 1002 |
1003 settings->setStrictMixedContentCheckingForPlugin( | 1003 settings->setStrictMixedContentCheckingForPlugin( |
1004 prefs.block_mixed_plugin_content); | 1004 prefs.block_mixed_plugin_content); |
1005 | 1005 |
1006 settings->setStrictPowerfulFeatureRestrictions( | 1006 settings->setStrictPowerfulFeatureRestrictions( |
1007 prefs.strict_powerful_feature_restrictions); | 1007 prefs.strict_powerful_feature_restrictions); |
| 1008 settings->setAllowGeolocationOnInsecureOrigins( |
| 1009 prefs.allow_geolocation_on_insecure_origins); |
1008 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); | 1010 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); |
1009 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); | 1011 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); |
1010 settings->setShouldClearDocumentBackground( | 1012 settings->setShouldClearDocumentBackground( |
1011 prefs.should_clear_document_background); | 1013 prefs.should_clear_document_background); |
1012 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); | 1014 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); |
1013 | 1015 |
1014 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); | 1016 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); |
1015 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); | 1017 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
1016 settings->setAvailablePointerTypes(prefs.available_pointer_types); | 1018 settings->setAvailablePointerTypes(prefs.available_pointer_types); |
1017 settings->setPrimaryPointerType( | 1019 settings->setPrimaryPointerType( |
(...skipping 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3724 if (IsUseZoomForDSFEnabled()) { | 3726 if (IsUseZoomForDSFEnabled()) { |
3725 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3727 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
3726 } else { | 3728 } else { |
3727 webview()->setDeviceScaleFactor(device_scale_factor_); | 3729 webview()->setDeviceScaleFactor(device_scale_factor_); |
3728 } | 3730 } |
3729 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3731 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
3730 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3732 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
3731 } | 3733 } |
3732 | 3734 |
3733 } // namespace content | 3735 } // namespace content |
OLD | NEW |