| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 settings->setAvailablePointerTypes(prefs.available_pointer_types); | 1029 settings->setAvailablePointerTypes(prefs.available_pointer_types); |
| 1030 settings->setPrimaryPointerType( | 1030 settings->setPrimaryPointerType( |
| 1031 static_cast<blink::PointerType>(prefs.primary_pointer_type)); | 1031 static_cast<blink::PointerType>(prefs.primary_pointer_type)); |
| 1032 settings->setAvailableHoverTypes(prefs.available_hover_types); | 1032 settings->setAvailableHoverTypes(prefs.available_hover_types); |
| 1033 settings->setPrimaryHoverType( | 1033 settings->setPrimaryHoverType( |
| 1034 static_cast<blink::HoverType>(prefs.primary_hover_type)); | 1034 static_cast<blink::HoverType>(prefs.primary_hover_type)); |
| 1035 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 1035 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
| 1036 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 1036 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
| 1037 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 1037 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
| 1038 | 1038 |
| 1039 WebRuntimeFeatures::enableImageColorProfiles( | 1039 WebRuntimeFeatures::enableColorCorrectRendering( |
| 1040 prefs.image_color_profiles_enabled); | 1040 prefs.color_correct_rendering_enabled); |
| 1041 settings->setShouldRespectImageOrientation( | 1041 settings->setShouldRespectImageOrientation( |
| 1042 prefs.should_respect_image_orientation); | 1042 prefs.should_respect_image_orientation); |
| 1043 | 1043 |
| 1044 settings->setEditingBehavior( | 1044 settings->setEditingBehavior( |
| 1045 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 1045 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
| 1046 | 1046 |
| 1047 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 1047 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
| 1048 | 1048 |
| 1049 settings->setInertVisualViewport(prefs.inert_visual_viewport); | 1049 settings->setInertVisualViewport(prefs.inert_visual_viewport); |
| 1050 | 1050 |
| (...skipping 2030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3081 return render_frame->focused_pepper_plugin(); | 3081 return render_frame->focused_pepper_plugin(); |
| 3082 } | 3082 } |
| 3083 frame = frame->traverseNext(false); | 3083 frame = frame->traverseNext(false); |
| 3084 } | 3084 } |
| 3085 | 3085 |
| 3086 return nullptr; | 3086 return nullptr; |
| 3087 } | 3087 } |
| 3088 #endif | 3088 #endif |
| 3089 | 3089 |
| 3090 } // namespace content | 3090 } // namespace content |
| OLD | NEW |