| 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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 1059 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
| 1060 | 1060 |
| 1061 settings->setShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up); | 1061 settings->setShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up); |
| 1062 settings->setAlwaysShowContextMenuOnTouch( | 1062 settings->setAlwaysShowContextMenuOnTouch( |
| 1063 prefs.always_show_context_menu_on_touch); | 1063 prefs.always_show_context_menu_on_touch); |
| 1064 | 1064 |
| 1065 settings->setHideDownloadUI(prefs.hide_download_ui); | 1065 settings->setHideDownloadUI(prefs.hide_download_ui); |
| 1066 WebRuntimeFeatures::enableBackgroundVideoTrackOptimization( | 1066 WebRuntimeFeatures::enableBackgroundVideoTrackOptimization( |
| 1067 prefs.background_video_track_optimization_enabled); | 1067 prefs.background_video_track_optimization_enabled); |
| 1068 | 1068 |
| 1069 settings->setPresentationReceiver(prefs.presentation_receiver); |
| 1070 |
| 1069 #if defined(OS_MACOSX) | 1071 #if defined(OS_MACOSX) |
| 1070 settings->setDoubleTapToZoomEnabled(true); | 1072 settings->setDoubleTapToZoomEnabled(true); |
| 1071 web_view->setMaximumLegibleScale(prefs.default_maximum_page_scale_factor); | 1073 web_view->setMaximumLegibleScale(prefs.default_maximum_page_scale_factor); |
| 1072 #endif | 1074 #endif |
| 1073 | 1075 |
| 1074 #if defined(OS_WIN) | 1076 #if defined(OS_WIN) |
| 1075 WebRuntimeFeatures::enableMiddleClickAutoscroll(true); | 1077 WebRuntimeFeatures::enableMiddleClickAutoscroll(true); |
| 1076 #endif | 1078 #endif |
| 1077 } | 1079 } |
| 1078 | 1080 |
| (...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2813 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2815 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 2814 } | 2816 } |
| 2815 | 2817 |
| 2816 std::unique_ptr<InputEventAck> ack( | 2818 std::unique_ptr<InputEventAck> ack( |
| 2817 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, | 2819 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, |
| 2818 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2820 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
| 2819 OnInputEventAck(std::move(ack)); | 2821 OnInputEventAck(std::move(ack)); |
| 2820 } | 2822 } |
| 2821 | 2823 |
| 2822 } // namespace content | 2824 } // namespace content |
| OLD | NEW |