Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2943983003: chrome/blink: Add functionality for in-product help for media elements. (Closed)
Patch Set: .. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 963
964 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( 964 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock(
965 prefs.video_fullscreen_orientation_lock_enabled); 965 prefs.video_fullscreen_orientation_lock_enabled);
966 WebRuntimeFeatures::EnableVideoRotateToFullscreen( 966 WebRuntimeFeatures::EnableVideoRotateToFullscreen(
967 prefs.video_rotate_to_fullscreen_enabled); 967 prefs.video_rotate_to_fullscreen_enabled);
968 WebRuntimeFeatures::EnableVideoFullscreenDetection( 968 WebRuntimeFeatures::EnableVideoFullscreenDetection(
969 prefs.video_fullscreen_detection_enabled); 969 prefs.video_fullscreen_detection_enabled);
970 settings->SetEmbeddedMediaExperienceEnabled( 970 settings->SetEmbeddedMediaExperienceEnabled(
971 prefs.embedded_media_experience_enabled); 971 prefs.embedded_media_experience_enabled);
972 settings->SetPagePopupsSuppressed(prefs.page_popups_suppressed); 972 settings->SetPagePopupsSuppressed(prefs.page_popups_suppressed);
973 settings->SetMediaDownloadInProductHelpEnabled(
974 prefs.enable_media_download_in_product_help);
973 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( 975 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange(
974 prefs.do_not_update_selection_on_mutating_selection_range); 976 prefs.do_not_update_selection_on_mutating_selection_range);
975 WebRuntimeFeatures::EnableCSSHexAlphaColor(prefs.css_hex_alpha_color_enabled); 977 WebRuntimeFeatures::EnableCSSHexAlphaColor(prefs.css_hex_alpha_color_enabled);
976 #endif // defined(OS_ANDROID) 978 #endif // defined(OS_ANDROID)
977 979
978 switch (prefs.autoplay_policy) { 980 switch (prefs.autoplay_policy) {
979 case AutoplayPolicy::kNoUserGestureRequired: 981 case AutoplayPolicy::kNoUserGestureRequired:
980 settings->SetAutoplayPolicy( 982 settings->SetAutoplayPolicy(
981 WebSettings::AutoplayPolicy::kNoUserGestureRequired); 983 WebSettings::AutoplayPolicy::kNoUserGestureRequired);
982 break; 984 break;
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
2528 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, 2530 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info,
2529 nullptr); 2531 nullptr);
2530 return; 2532 return;
2531 } 2533 }
2532 idle_user_detector_->ActivityDetected(); 2534 idle_user_detector_->ActivityDetected();
2533 RenderWidget::HandleInputEvent(input_event, latency_info, 2535 RenderWidget::HandleInputEvent(input_event, latency_info,
2534 std::move(callback)); 2536 std::move(callback));
2535 } 2537 }
2536 2538
2537 } // namespace content 2539 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/core/exported/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698