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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 | 926 |
927 WebRuntimeFeatures::enableTouchEventAPI(prefs.touch_event_api_enabled); | 927 WebRuntimeFeatures::enableTouchEventAPI(prefs.touch_event_api_enabled); |
928 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); | 928 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
929 settings->setAvailablePointerTypes(prefs.available_pointer_types); | 929 settings->setAvailablePointerTypes(prefs.available_pointer_types); |
930 settings->setPrimaryPointerType( | 930 settings->setPrimaryPointerType( |
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); | |
937 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 936 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
938 | 937 |
939 WebRuntimeFeatures::enableColorCorrectRendering( | 938 WebRuntimeFeatures::enableColorCorrectRendering( |
940 prefs.color_correct_rendering_enabled); | 939 prefs.color_correct_rendering_enabled); |
941 | 940 |
942 WebRuntimeFeatures::enableTrueColorRendering( | 941 WebRuntimeFeatures::enableTrueColorRendering( |
943 prefs.true_color_rendering_enabled); | 942 prefs.true_color_rendering_enabled); |
944 | 943 |
945 settings->setShouldRespectImageOrientation( | 944 settings->setShouldRespectImageOrientation( |
946 prefs.should_respect_image_orientation); | 945 prefs.should_respect_image_orientation); |
(...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2812 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2811 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
2813 } | 2812 } |
2814 | 2813 |
2815 std::unique_ptr<InputEventAck> ack( | 2814 std::unique_ptr<InputEventAck> ack( |
2816 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, | 2815 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, |
2817 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2816 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
2818 OnInputEventAck(std::move(ack)); | 2817 OnInputEventAck(std::move(ack)); |
2819 } | 2818 } |
2820 | 2819 |
2821 } // namespace content | 2820 } // namespace content |
OLD | NEW |