| 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 | 
| 11 #include "base/auto_reset.h" | 11 #include "base/auto_reset.h" | 
| 12 #include "base/bind.h" | 12 #include "base/bind.h" | 
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" | 
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" | 
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" | 
| 16 #include "base/debug/alias.h" | 16 #include "base/debug/alias.h" | 
| 17 #include "base/debug/crash_logging.h" | 17 #include "base/debug/crash_logging.h" | 
|  | 18 #include "base/feature_list.h" | 
| 18 #include "base/files/file_path.h" | 19 #include "base/files/file_path.h" | 
| 19 #include "base/i18n/rtl.h" | 20 #include "base/i18n/rtl.h" | 
| 20 #include "base/json/json_writer.h" | 21 #include "base/json/json_writer.h" | 
| 21 #include "base/lazy_instance.h" | 22 #include "base/lazy_instance.h" | 
| 22 #include "base/location.h" | 23 #include "base/location.h" | 
| 23 #include "base/memory/ptr_util.h" | 24 #include "base/memory/ptr_util.h" | 
| 24 #include "base/metrics/field_trial.h" | 25 #include "base/metrics/field_trial.h" | 
| 25 #include "base/metrics/histogram_macros.h" | 26 #include "base/metrics/histogram_macros.h" | 
| 26 #include "base/process/kill.h" | 27 #include "base/process/kill.h" | 
| 27 #include "base/process/process.h" | 28 #include "base/process/process.h" | 
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1074 | 1075 | 
| 1075   settings->SetUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 1076   settings->SetUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 
| 1076 | 1077 | 
| 1077   settings->SetShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up); | 1078   settings->SetShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up); | 
| 1078   settings->SetAlwaysShowContextMenuOnTouch( | 1079   settings->SetAlwaysShowContextMenuOnTouch( | 
| 1079       prefs.always_show_context_menu_on_touch); | 1080       prefs.always_show_context_menu_on_touch); | 
| 1080 | 1081 | 
| 1081   settings->SetHideDownloadUI(prefs.hide_download_ui); | 1082   settings->SetHideDownloadUI(prefs.hide_download_ui); | 
| 1082   WebRuntimeFeatures::EnableBackgroundVideoTrackOptimization( | 1083   WebRuntimeFeatures::EnableBackgroundVideoTrackOptimization( | 
| 1083       prefs.background_video_track_optimization_enabled); | 1084       prefs.background_video_track_optimization_enabled); | 
|  | 1085   WebRuntimeFeatures::EnableNewRemotePlaybackPipeline( | 
|  | 1086       base::FeatureList::IsEnabled(media::kNewRemotePlaybackPipeline)); | 
| 1084 | 1087 | 
| 1085   settings->SetPresentationReceiver(prefs.presentation_receiver); | 1088   settings->SetPresentationReceiver(prefs.presentation_receiver); | 
| 1086 | 1089 | 
| 1087   settings->SetMediaControlsEnabled(prefs.media_controls_enabled); | 1090   settings->SetMediaControlsEnabled(prefs.media_controls_enabled); | 
| 1088 | 1091 | 
| 1089 #if defined(OS_MACOSX) | 1092 #if defined(OS_MACOSX) | 
| 1090   settings->SetDoubleTapToZoomEnabled(true); | 1093   settings->SetDoubleTapToZoomEnabled(true); | 
| 1091   web_view->SetMaximumLegibleScale(prefs.default_maximum_page_scale_factor); | 1094   web_view->SetMaximumLegibleScale(prefs.default_maximum_page_scale_factor); | 
| 1092 #endif | 1095 #endif | 
| 1093 | 1096 | 
| (...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2664                         input_event.GetCoalescedEventsPointers(), latency_info, | 2667                         input_event.GetCoalescedEventsPointers(), latency_info, | 
| 2665                         dispatch_type); | 2668                         dispatch_type); | 
| 2666     return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 2669     return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 
| 2667   } | 2670   } | 
| 2668   idle_user_detector_->ActivityDetected(); | 2671   idle_user_detector_->ActivityDetected(); | 
| 2669   return RenderWidget::HandleInputEvent(input_event, latency_info, | 2672   return RenderWidget::HandleInputEvent(input_event, latency_info, | 
| 2670                                         dispatch_type); | 2673                                         dispatch_type); | 
| 2671 } | 2674 } | 
| 2672 | 2675 | 
| 2673 }  // namespace content | 2676 }  // namespace content | 
| OLD | NEW | 
|---|