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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 settings->setStrictPowerfulFeatureRestrictions( | 917 settings->setStrictPowerfulFeatureRestrictions( |
918 prefs.strict_powerful_feature_restrictions); | 918 prefs.strict_powerful_feature_restrictions); |
919 settings->setAllowGeolocationOnInsecureOrigins( | 919 settings->setAllowGeolocationOnInsecureOrigins( |
920 prefs.allow_geolocation_on_insecure_origins); | 920 prefs.allow_geolocation_on_insecure_origins); |
921 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); | 921 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); |
922 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); | 922 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); |
923 settings->setShouldClearDocumentBackground( | 923 settings->setShouldClearDocumentBackground( |
924 prefs.should_clear_document_background); | 924 prefs.should_clear_document_background); |
925 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); | 925 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); |
926 | 926 |
927 WebRuntimeFeatures::enableTouchEventAPI(prefs.touch_event_api_enabled); | 927 WebRuntimeFeatures::enableTouchEventFeatureDetection( |
| 928 prefs.touch_event_feature_detection_enabled); |
928 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); | 929 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
929 settings->setAvailablePointerTypes(prefs.available_pointer_types); | 930 settings->setAvailablePointerTypes(prefs.available_pointer_types); |
930 settings->setPrimaryPointerType( | 931 settings->setPrimaryPointerType( |
931 static_cast<blink::PointerType>(prefs.primary_pointer_type)); | 932 static_cast<blink::PointerType>(prefs.primary_pointer_type)); |
932 settings->setAvailableHoverTypes(prefs.available_hover_types); | 933 settings->setAvailableHoverTypes(prefs.available_hover_types); |
933 settings->setPrimaryHoverType( | 934 settings->setPrimaryHoverType( |
934 static_cast<blink::HoverType>(prefs.primary_hover_type)); | 935 static_cast<blink::HoverType>(prefs.primary_hover_type)); |
935 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 936 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
936 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 937 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
937 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 938 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2819 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
2819 } | 2820 } |
2820 | 2821 |
2821 std::unique_ptr<InputEventAck> ack( | 2822 std::unique_ptr<InputEventAck> ack( |
2822 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, | 2823 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, |
2823 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2824 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
2824 OnInputEventAck(std::move(ack)); | 2825 OnInputEventAck(std::move(ack)); |
2825 } | 2826 } |
2826 | 2827 |
2827 } // namespace content | 2828 } // namespace content |
OLD | NEW |