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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 static_cast<blink::HoverType>(prefs.primary_hover_type)); | 961 static_cast<blink::HoverType>(prefs.primary_hover_type)); |
962 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 962 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
963 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 963 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
964 | 964 |
965 WebRuntimeFeatures::enableColorCorrectRendering( | 965 WebRuntimeFeatures::enableColorCorrectRendering( |
966 prefs.color_correct_rendering_enabled); | 966 prefs.color_correct_rendering_enabled); |
967 | 967 |
968 WebRuntimeFeatures::enableColorCorrectRenderingDefaultMode( | 968 WebRuntimeFeatures::enableColorCorrectRenderingDefaultMode( |
969 prefs.color_correct_rendering_default_mode_enabled); | 969 prefs.color_correct_rendering_default_mode_enabled); |
970 | 970 |
971 WebRuntimeFeatures::enableTrueColorRendering( | |
972 prefs.true_color_rendering_enabled); | |
973 | |
974 settings->setShouldRespectImageOrientation( | 971 settings->setShouldRespectImageOrientation( |
975 prefs.should_respect_image_orientation); | 972 prefs.should_respect_image_orientation); |
976 | 973 |
977 settings->setEditingBehavior( | 974 settings->setEditingBehavior( |
978 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 975 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
979 | 976 |
980 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 977 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
981 | 978 |
982 settings->setInertVisualViewport(prefs.inert_visual_viewport); | 979 settings->setInertVisualViewport(prefs.inert_visual_viewport); |
983 | 980 |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2712 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2709 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
2713 } | 2710 } |
2714 | 2711 |
2715 std::unique_ptr<InputEventAck> ack( | 2712 std::unique_ptr<InputEventAck> ack( |
2716 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), | 2713 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), |
2717 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2714 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
2718 OnInputEventAck(std::move(ack)); | 2715 OnInputEventAck(std::move(ack)); |
2719 } | 2716 } |
2720 | 2717 |
2721 } // namespace content | 2718 } // namespace content |
OLD | NEW |