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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 | 978 |
979 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( | 979 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( |
980 prefs.video_fullscreen_orientation_lock_enabled); | 980 prefs.video_fullscreen_orientation_lock_enabled); |
981 WebRuntimeFeatures::EnableVideoRotateToFullscreen( | 981 WebRuntimeFeatures::EnableVideoRotateToFullscreen( |
982 prefs.video_rotate_to_fullscreen_enabled); | 982 prefs.video_rotate_to_fullscreen_enabled); |
983 WebRuntimeFeatures::EnableVideoFullscreenDetection( | 983 WebRuntimeFeatures::EnableVideoFullscreenDetection( |
984 prefs.video_fullscreen_detection_enabled); | 984 prefs.video_fullscreen_detection_enabled); |
985 settings->SetEmbeddedMediaExperienceEnabled( | 985 settings->SetEmbeddedMediaExperienceEnabled( |
986 prefs.embedded_media_experience_enabled); | 986 prefs.embedded_media_experience_enabled); |
987 settings->SetPagePopupsSuppressed(prefs.page_popups_suppressed); | 987 settings->SetPagePopupsSuppressed(prefs.page_popups_suppressed); |
| 988 settings->SetMediaDownloadInProductHelpEnabled( |
| 989 prefs.enable_media_in_product_help); |
988 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( | 990 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( |
989 prefs.do_not_update_selection_on_mutating_selection_range); | 991 prefs.do_not_update_selection_on_mutating_selection_range); |
990 #endif // defined(OS_ANDROID) | 992 #endif // defined(OS_ANDROID) |
991 | 993 |
992 switch (prefs.autoplay_policy) { | 994 switch (prefs.autoplay_policy) { |
993 case AutoplayPolicy::kNoUserGestureRequired: | 995 case AutoplayPolicy::kNoUserGestureRequired: |
994 settings->SetAutoplayPolicy( | 996 settings->SetAutoplayPolicy( |
995 WebSettings::AutoplayPolicy::kNoUserGestureRequired); | 997 WebSettings::AutoplayPolicy::kNoUserGestureRequired); |
996 break; | 998 break; |
997 case AutoplayPolicy::kUserGestureRequired: | 999 case AutoplayPolicy::kUserGestureRequired: |
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, | 2565 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, |
2564 nullptr); | 2566 nullptr); |
2565 return; | 2567 return; |
2566 } | 2568 } |
2567 idle_user_detector_->ActivityDetected(); | 2569 idle_user_detector_->ActivityDetected(); |
2568 RenderWidget::HandleInputEvent(input_event, latency_info, | 2570 RenderWidget::HandleInputEvent(input_event, latency_info, |
2569 std::move(callback)); | 2571 std::move(callback)); |
2570 } | 2572 } |
2571 | 2573 |
2572 } // namespace content | 2574 } // namespace content |
OLD | NEW |