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

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

Issue 2773403003: Removed device_supports_touch. (Closed)
Patch Set: Preserved old touch-flag behavior. Created 3 years, 8 months 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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 953
954 WebRuntimeFeatures::enableTouchEventFeatureDetection( 954 WebRuntimeFeatures::enableTouchEventFeatureDetection(
955 prefs.touch_event_feature_detection_enabled); 955 prefs.touch_event_feature_detection_enabled);
956 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); 956 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points);
957 settings->setAvailablePointerTypes(prefs.available_pointer_types); 957 settings->setAvailablePointerTypes(prefs.available_pointer_types);
958 settings->setPrimaryPointerType( 958 settings->setPrimaryPointerType(
959 static_cast<blink::PointerType>(prefs.primary_pointer_type)); 959 static_cast<blink::PointerType>(prefs.primary_pointer_type));
960 settings->setAvailableHoverTypes(prefs.available_hover_types); 960 settings->setAvailableHoverTypes(prefs.available_hover_types);
961 settings->setPrimaryHoverType( 961 settings->setPrimaryHoverType(
962 static_cast<blink::HoverType>(prefs.primary_hover_type)); 962 static_cast<blink::HoverType>(prefs.primary_hover_type));
963 settings->setDeviceSupportsTouch(prefs.device_supports_touch);
964 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); 963 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
965 964
966 WebRuntimeFeatures::enableColorCorrectRendering( 965 WebRuntimeFeatures::enableColorCorrectRendering(
967 prefs.color_correct_rendering_enabled); 966 prefs.color_correct_rendering_enabled);
968 967
969 WebRuntimeFeatures::enableColorCorrectRenderingDefaultMode( 968 WebRuntimeFeatures::enableColorCorrectRenderingDefaultMode(
970 prefs.color_correct_rendering_default_mode_enabled); 969 prefs.color_correct_rendering_default_mode_enabled);
971 970
972 settings->setShouldRespectImageOrientation( 971 settings->setShouldRespectImageOrientation(
973 prefs.should_respect_image_orientation); 972 prefs.should_respect_image_orientation);
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 2711 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
2713 } 2712 }
2714 2713
2715 std::unique_ptr<InputEventAck> ack( 2714 std::unique_ptr<InputEventAck> ack(
2716 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), 2715 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(),
2717 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 2716 INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
2718 OnInputEventAck(std::move(ack)); 2717 OnInputEventAck(std::move(ack));
2719 } 2718 }
2720 2719
2721 } // namespace content 2720 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698