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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 static_cast<blink::PointerType>(prefs.primary_pointer_type)); | 931 static_cast<blink::PointerType>(prefs.primary_pointer_type)); |
932 settings->setAvailableHoverTypes(prefs.available_hover_types); | 932 settings->setAvailableHoverTypes(prefs.available_hover_types); |
933 settings->setPrimaryHoverType( | 933 settings->setPrimaryHoverType( |
934 static_cast<blink::HoverType>(prefs.primary_hover_type)); | 934 static_cast<blink::HoverType>(prefs.primary_hover_type)); |
935 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 935 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
936 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 936 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
937 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 937 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
938 | 938 |
939 WebRuntimeFeatures::enableColorCorrectRendering( | 939 WebRuntimeFeatures::enableColorCorrectRendering( |
940 prefs.color_correct_rendering_enabled); | 940 prefs.color_correct_rendering_enabled); |
| 941 |
| 942 WebRuntimeFeatures::enableTrueColorRendering( |
| 943 prefs.true_color_rendering_enabled); |
| 944 |
941 settings->setShouldRespectImageOrientation( | 945 settings->setShouldRespectImageOrientation( |
942 prefs.should_respect_image_orientation); | 946 prefs.should_respect_image_orientation); |
943 | 947 |
944 settings->setEditingBehavior( | 948 settings->setEditingBehavior( |
945 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 949 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
946 | 950 |
947 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 951 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
948 | 952 |
949 settings->setInertVisualViewport(prefs.inert_visual_viewport); | 953 settings->setInertVisualViewport(prefs.inert_visual_viewport); |
950 | 954 |
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2809 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2813 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
2810 } | 2814 } |
2811 | 2815 |
2812 std::unique_ptr<InputEventAck> ack( | 2816 std::unique_ptr<InputEventAck> ack( |
2813 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, | 2817 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, |
2814 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2818 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
2815 OnInputEventAck(std::move(ack)); | 2819 OnInputEventAck(std::move(ack)); |
2816 } | 2820 } |
2817 | 2821 |
2818 } // namespace content | 2822 } // namespace content |
OLD | NEW |