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 #include <utility> | 10 #include <utility> |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 | 966 |
967 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( | 967 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( |
968 prefs.video_fullscreen_orientation_lock_enabled); | 968 prefs.video_fullscreen_orientation_lock_enabled); |
969 WebRuntimeFeatures::EnableVideoRotateToFullscreen( | 969 WebRuntimeFeatures::EnableVideoRotateToFullscreen( |
970 prefs.video_rotate_to_fullscreen_enabled); | 970 prefs.video_rotate_to_fullscreen_enabled); |
971 WebRuntimeFeatures::EnableVideoFullscreenDetection( | 971 WebRuntimeFeatures::EnableVideoFullscreenDetection( |
972 prefs.video_fullscreen_detection_enabled); | 972 prefs.video_fullscreen_detection_enabled); |
973 settings->SetEmbeddedMediaExperienceEnabled( | 973 settings->SetEmbeddedMediaExperienceEnabled( |
974 prefs.embedded_media_experience_enabled); | 974 prefs.embedded_media_experience_enabled); |
975 settings->SetPagePopupsSuppressed(prefs.page_popups_suppressed); | 975 settings->SetPagePopupsSuppressed(prefs.page_popups_suppressed); |
| 976 settings->SetMediaDownloadInProductHelpEnabled( |
| 977 prefs.enable_media_download_in_product_help); |
976 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( | 978 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( |
977 prefs.do_not_update_selection_on_mutating_selection_range); | 979 prefs.do_not_update_selection_on_mutating_selection_range); |
978 #endif // defined(OS_ANDROID) | 980 #endif // defined(OS_ANDROID) |
979 | 981 |
980 switch (prefs.autoplay_policy) { | 982 switch (prefs.autoplay_policy) { |
981 case AutoplayPolicy::kNoUserGestureRequired: | 983 case AutoplayPolicy::kNoUserGestureRequired: |
982 settings->SetAutoplayPolicy( | 984 settings->SetAutoplayPolicy( |
983 WebSettings::AutoplayPolicy::kNoUserGestureRequired); | 985 WebSettings::AutoplayPolicy::kNoUserGestureRequired); |
984 break; | 986 break; |
985 case AutoplayPolicy::kUserGestureRequired: | 987 case AutoplayPolicy::kUserGestureRequired: |
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2533 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, | 2535 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, |
2534 nullptr); | 2536 nullptr); |
2535 return; | 2537 return; |
2536 } | 2538 } |
2537 idle_user_detector_->ActivityDetected(); | 2539 idle_user_detector_->ActivityDetected(); |
2538 RenderWidget::HandleInputEvent(input_event, latency_info, | 2540 RenderWidget::HandleInputEvent(input_event, latency_info, |
2539 std::move(callback)); | 2541 std::move(callback)); |
2540 } | 2542 } |
2541 | 2543 |
2542 } // namespace content | 2544 } // namespace content |
OLD | NEW |