| 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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 settings->setStrictPowerfulFeatureRestrictions( | 1041 settings->setStrictPowerfulFeatureRestrictions( |
| 1042 prefs.strict_powerful_feature_restrictions); | 1042 prefs.strict_powerful_feature_restrictions); |
| 1043 settings->setAllowGeolocationOnInsecureOrigins( | 1043 settings->setAllowGeolocationOnInsecureOrigins( |
| 1044 prefs.allow_geolocation_on_insecure_origins); | 1044 prefs.allow_geolocation_on_insecure_origins); |
| 1045 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); | 1045 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); |
| 1046 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); | 1046 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); |
| 1047 settings->setShouldClearDocumentBackground( | 1047 settings->setShouldClearDocumentBackground( |
| 1048 prefs.should_clear_document_background); | 1048 prefs.should_clear_document_background); |
| 1049 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); | 1049 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); |
| 1050 | 1050 |
| 1051 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); | 1051 WebRuntimeFeatures::enableTouchAPI(prefs.touch_api_enabled); |
| 1052 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); | 1052 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); |
| 1053 settings->setAvailablePointerTypes(prefs.available_pointer_types); | 1053 settings->setAvailablePointerTypes(prefs.available_pointer_types); |
| 1054 settings->setPrimaryPointerType( | 1054 settings->setPrimaryPointerType( |
| 1055 static_cast<blink::PointerType>(prefs.primary_pointer_type)); | 1055 static_cast<blink::PointerType>(prefs.primary_pointer_type)); |
| 1056 settings->setAvailableHoverTypes(prefs.available_hover_types); | 1056 settings->setAvailableHoverTypes(prefs.available_hover_types); |
| 1057 settings->setPrimaryHoverType( | 1057 settings->setPrimaryHoverType( |
| 1058 static_cast<blink::HoverType>(prefs.primary_hover_type)); | 1058 static_cast<blink::HoverType>(prefs.primary_hover_type)); |
| 1059 settings->setDeviceSupportsTouch(prefs.device_supports_touch); | 1059 settings->setDeviceSupportsTouch(prefs.device_supports_touch); |
| 1060 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); | 1060 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); |
| 1061 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); | 1061 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); |
| (...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3042 NotifyInputEventHandled(input_event->type, | 3042 NotifyInputEventHandled(input_event->type, |
| 3043 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 3043 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 3044 } | 3044 } |
| 3045 | 3045 |
| 3046 std::unique_ptr<InputEventAck> ack( | 3046 std::unique_ptr<InputEventAck> ack( |
| 3047 new InputEventAck(input_event->type, INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 3047 new InputEventAck(input_event->type, INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
| 3048 OnInputEventAck(std::move(ack)); | 3048 OnInputEventAck(std::move(ack)); |
| 3049 } | 3049 } |
| 3050 | 3050 |
| 3051 } // namespace content | 3051 } // namespace content |
| OLD | NEW |