Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2467913002: Touch event flag should control only DOM event firing. (Closed)
Patch Set: Bring the auto back. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 settings->setStrictPowerfulFeatureRestrictions( 909 settings->setStrictPowerfulFeatureRestrictions(
910 prefs.strict_powerful_feature_restrictions); 910 prefs.strict_powerful_feature_restrictions);
911 settings->setAllowGeolocationOnInsecureOrigins( 911 settings->setAllowGeolocationOnInsecureOrigins(
912 prefs.allow_geolocation_on_insecure_origins); 912 prefs.allow_geolocation_on_insecure_origins);
913 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); 913 settings->setPasswordEchoEnabled(prefs.password_echo_enabled);
914 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); 914 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds);
915 settings->setShouldClearDocumentBackground( 915 settings->setShouldClearDocumentBackground(
916 prefs.should_clear_document_background); 916 prefs.should_clear_document_background);
917 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); 917 settings->setEnableScrollAnimator(prefs.enable_scroll_animator);
918 918
919 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); 919 WebRuntimeFeatures::enableTouchEventAPI(prefs.touch_event_api_enabled);
920 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); 920 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points);
921 settings->setAvailablePointerTypes(prefs.available_pointer_types); 921 settings->setAvailablePointerTypes(prefs.available_pointer_types);
922 settings->setPrimaryPointerType( 922 settings->setPrimaryPointerType(
923 static_cast<blink::PointerType>(prefs.primary_pointer_type)); 923 static_cast<blink::PointerType>(prefs.primary_pointer_type));
924 settings->setAvailableHoverTypes(prefs.available_hover_types); 924 settings->setAvailableHoverTypes(prefs.available_hover_types);
925 settings->setPrimaryHoverType( 925 settings->setPrimaryHoverType(
926 static_cast<blink::HoverType>(prefs.primary_hover_type)); 926 static_cast<blink::HoverType>(prefs.primary_hover_type));
927 settings->setDeviceSupportsTouch(prefs.device_supports_touch); 927 settings->setDeviceSupportsTouch(prefs.device_supports_touch);
928 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); 928 settings->setDeviceSupportsMouse(prefs.device_supports_mouse);
929 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); 929 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 2792 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
2793 } 2793 }
2794 2794
2795 std::unique_ptr<InputEventAck> ack( 2795 std::unique_ptr<InputEventAck> ack(
2796 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, 2796 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type,
2797 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 2797 INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
2798 OnInputEventAck(std::move(ack)); 2798 OnInputEventAck(std::move(ack));
2799 } 2799 }
2800 2800
2801 } // namespace content 2801 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698