| 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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 static_cast<WebSettings::PointerType>(prefs.primary_pointer_type)); | 1034 static_cast<WebSettings::PointerType>(prefs.primary_pointer_type)); |
| 1035 settings->setAvailableHoverTypes(prefs.available_hover_types); | 1035 settings->setAvailableHoverTypes(prefs.available_hover_types); |
| 1036 settings->setPrimaryHoverType( | 1036 settings->setPrimaryHoverType( |
| 1037 static_cast<WebSettings::HoverType>(prefs.primary_hover_type)); | 1037 static_cast<WebSettings::HoverType>(prefs.primary_hover_type)); |
| 1038 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 1038 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
| 1039 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 1039 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
| 1040 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 1040 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
| 1041 settings->setMultiTargetTapNotificationEnabled( | 1041 settings->setMultiTargetTapNotificationEnabled( |
| 1042 switches::IsLinkDisambiguationPopupEnabled()); | 1042 switches::IsLinkDisambiguationPopupEnabled()); |
| 1043 | 1043 |
| 1044 settings->setDeferredImageDecodingEnabled( | 1044 // TODO(danakj): Remove this it's always true. |
| 1045 prefs.deferred_image_decoding_enabled); | 1045 settings->setDeferredImageDecodingEnabled(true); |
| 1046 WebRuntimeFeatures::enableImageColorProfiles( | 1046 WebRuntimeFeatures::enableImageColorProfiles( |
| 1047 prefs.image_color_profiles_enabled); | 1047 prefs.image_color_profiles_enabled); |
| 1048 settings->setShouldRespectImageOrientation( | 1048 settings->setShouldRespectImageOrientation( |
| 1049 prefs.should_respect_image_orientation); | 1049 prefs.should_respect_image_orientation); |
| 1050 | 1050 |
| 1051 settings->setUnsafePluginPastingEnabled(false); | 1051 settings->setUnsafePluginPastingEnabled(false); |
| 1052 settings->setEditingBehavior( | 1052 settings->setEditingBehavior( |
| 1053 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 1053 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
| 1054 | 1054 |
| 1055 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 1055 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
| (...skipping 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3780 std::vector<gfx::Size> sizes; | 3780 std::vector<gfx::Size> sizes; |
| 3781 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 3781 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 3782 if (!url.isEmpty()) | 3782 if (!url.isEmpty()) |
| 3783 urls.push_back( | 3783 urls.push_back( |
| 3784 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 3784 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 3785 } | 3785 } |
| 3786 SendUpdateFaviconURL(urls); | 3786 SendUpdateFaviconURL(urls); |
| 3787 } | 3787 } |
| 3788 | 3788 |
| 3789 } // namespace content | 3789 } // namespace content |
| OLD | NEW |