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_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 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2556 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, | 2558 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, |
2557 nullptr); | 2559 nullptr); |
2558 return; | 2560 return; |
2559 } | 2561 } |
2560 idle_user_detector_->ActivityDetected(); | 2562 idle_user_detector_->ActivityDetected(); |
2561 RenderWidget::HandleInputEvent(input_event, latency_info, | 2563 RenderWidget::HandleInputEvent(input_event, latency_info, |
2562 std::move(callback)); | 2564 std::move(callback)); |
2563 } | 2565 } |
2564 | 2566 |
2565 } // namespace content | 2567 } // namespace content |
OLD | NEW |