| 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 settings->setAvailableHoverTypes(prefs.available_hover_types); | 933 settings->setAvailableHoverTypes(prefs.available_hover_types); |
| 934 settings->setPrimaryHoverType( | 934 settings->setPrimaryHoverType( |
| 935 static_cast<blink::HoverType>(prefs.primary_hover_type)); | 935 static_cast<blink::HoverType>(prefs.primary_hover_type)); |
| 936 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 936 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
| 937 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 937 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
| 938 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 938 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
| 939 | 939 |
| 940 WebRuntimeFeatures::enableColorCorrectRendering( | 940 WebRuntimeFeatures::enableColorCorrectRendering( |
| 941 prefs.color_correct_rendering_enabled); | 941 prefs.color_correct_rendering_enabled); |
| 942 | 942 |
| 943 WebRuntimeFeatures::enableColorCorrectRenderingDefaultMode( |
| 944 prefs.color_correct_rendering_default_mode_enabled); |
| 945 |
| 943 WebRuntimeFeatures::enableTrueColorRendering( | 946 WebRuntimeFeatures::enableTrueColorRendering( |
| 944 prefs.true_color_rendering_enabled); | 947 prefs.true_color_rendering_enabled); |
| 945 | 948 |
| 946 settings->setShouldRespectImageOrientation( | 949 settings->setShouldRespectImageOrientation( |
| 947 prefs.should_respect_image_orientation); | 950 prefs.should_respect_image_orientation); |
| 948 | 951 |
| 949 settings->setEditingBehavior( | 952 settings->setEditingBehavior( |
| 950 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 953 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
| 951 | 954 |
| 952 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 955 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
| (...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2819 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2822 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 2820 } | 2823 } |
| 2821 | 2824 |
| 2822 std::unique_ptr<InputEventAck> ack( | 2825 std::unique_ptr<InputEventAck> ack( |
| 2823 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, | 2826 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, |
| 2824 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2827 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
| 2825 OnInputEventAck(std::move(ack)); | 2828 OnInputEventAck(std::move(ack)); |
| 2826 } | 2829 } |
| 2827 | 2830 |
| 2828 } // namespace content | 2831 } // namespace content |
| OLD | NEW |