| 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 settings->SetForcePreloadNoneForMediaElements(is_jelly_bean); | 1033 settings->SetForcePreloadNoneForMediaElements(is_jelly_bean); |
| 1034 | 1034 |
| 1035 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( | 1035 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( |
| 1036 prefs.video_fullscreen_orientation_lock_enabled); | 1036 prefs.video_fullscreen_orientation_lock_enabled); |
| 1037 WebRuntimeFeatures::EnableVideoRotateToFullscreen( | 1037 WebRuntimeFeatures::EnableVideoRotateToFullscreen( |
| 1038 prefs.video_rotate_to_fullscreen_enabled); | 1038 prefs.video_rotate_to_fullscreen_enabled); |
| 1039 WebRuntimeFeatures::EnableVideoFullscreenDetection( | 1039 WebRuntimeFeatures::EnableVideoFullscreenDetection( |
| 1040 prefs.video_fullscreen_detection_enabled); | 1040 prefs.video_fullscreen_detection_enabled); |
| 1041 settings->SetEmbeddedMediaExperienceEnabled( | 1041 settings->SetEmbeddedMediaExperienceEnabled( |
| 1042 prefs.embedded_media_experience_enabled); | 1042 prefs.embedded_media_experience_enabled); |
| 1043 settings->SetPagePopupsSuppressed(prefs.page_popups_suppressed); |
| 1043 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( | 1044 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( |
| 1044 prefs.do_not_update_selection_on_mutating_selection_range); | 1045 prefs.do_not_update_selection_on_mutating_selection_range); |
| 1045 #endif // defined(OS_ANDROID) | 1046 #endif // defined(OS_ANDROID) |
| 1046 | 1047 |
| 1047 switch (prefs.autoplay_policy) { | 1048 switch (prefs.autoplay_policy) { |
| 1048 case AutoplayPolicy::kNoUserGestureRequired: | 1049 case AutoplayPolicy::kNoUserGestureRequired: |
| 1049 settings->SetAutoplayPolicy( | 1050 settings->SetAutoplayPolicy( |
| 1050 WebSettings::AutoplayPolicy::kNoUserGestureRequired); | 1051 WebSettings::AutoplayPolicy::kNoUserGestureRequired); |
| 1051 break; | 1052 break; |
| 1052 case AutoplayPolicy::kUserGestureRequired: | 1053 case AutoplayPolicy::kUserGestureRequired: |
| (...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2674 input_event.GetCoalescedEventsPointers(), latency_info, | 2675 input_event.GetCoalescedEventsPointers(), latency_info, |
| 2675 dispatch_type); | 2676 dispatch_type); |
| 2676 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 2677 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
| 2677 } | 2678 } |
| 2678 idle_user_detector_->ActivityDetected(); | 2679 idle_user_detector_->ActivityDetected(); |
| 2679 return RenderWidget::HandleInputEvent(input_event, latency_info, | 2680 return RenderWidget::HandleInputEvent(input_event, latency_info, |
| 2680 dispatch_type); | 2681 dispatch_type); |
| 2681 } | 2682 } |
| 2682 | 2683 |
| 2683 } // namespace content | 2684 } // namespace content |
| OLD | NEW |