| 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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); | 1040 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); |
| 1041 | 1041 |
| 1042 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); | 1042 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); |
| 1043 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); | 1043 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
| 1044 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 1044 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
| 1045 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 1045 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
| 1046 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 1046 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
| 1047 | 1047 |
| 1048 settings->setDeferredImageDecodingEnabled( | 1048 settings->setDeferredImageDecodingEnabled( |
| 1049 prefs.deferred_image_decoding_enabled); | 1049 prefs.deferred_image_decoding_enabled); |
| 1050 settings->setDecodeToYUVEnabled( |
| 1051 prefs.decode_to_yuv_enabled); |
| 1050 settings->setShouldRespectImageOrientation( | 1052 settings->setShouldRespectImageOrientation( |
| 1051 prefs.should_respect_image_orientation); | 1053 prefs.should_respect_image_orientation); |
| 1052 | 1054 |
| 1053 settings->setUnsafePluginPastingEnabled(false); | 1055 settings->setUnsafePluginPastingEnabled(false); |
| 1054 settings->setEditingBehavior( | 1056 settings->setEditingBehavior( |
| 1055 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 1057 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
| 1056 | 1058 |
| 1057 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 1059 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
| 1058 | 1060 |
| 1059 settings->setViewportEnabled(prefs.viewport_enabled); | 1061 settings->setViewportEnabled(prefs.viewport_enabled); |
| (...skipping 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4184 std::vector<gfx::Size> sizes; | 4186 std::vector<gfx::Size> sizes; |
| 4185 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4187 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4186 if (!url.isEmpty()) | 4188 if (!url.isEmpty()) |
| 4187 urls.push_back( | 4189 urls.push_back( |
| 4188 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4190 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4189 } | 4191 } |
| 4190 SendUpdateFaviconURL(urls); | 4192 SendUpdateFaviconURL(urls); |
| 4191 } | 4193 } |
| 4192 | 4194 |
| 4193 } // namespace content | 4195 } // namespace content |
| OLD | NEW |