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

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

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)
Patch Set: Created 3 years, 9 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 10
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 1009
1010 settings->setExpensiveBackgroundThrottlingCPUBudget( 1010 settings->setExpensiveBackgroundThrottlingCPUBudget(
1011 prefs.expensive_background_throttling_cpu_budget); 1011 prefs.expensive_background_throttling_cpu_budget);
1012 settings->setExpensiveBackgroundThrottlingInitialBudget( 1012 settings->setExpensiveBackgroundThrottlingInitialBudget(
1013 prefs.expensive_background_throttling_initial_budget); 1013 prefs.expensive_background_throttling_initial_budget);
1014 settings->setExpensiveBackgroundThrottlingMaxBudget( 1014 settings->setExpensiveBackgroundThrottlingMaxBudget(
1015 prefs.expensive_background_throttling_max_budget); 1015 prefs.expensive_background_throttling_max_budget);
1016 settings->setExpensiveBackgroundThrottlingMaxDelay( 1016 settings->setExpensiveBackgroundThrottlingMaxDelay(
1017 prefs.expensive_background_throttling_max_delay); 1017 prefs.expensive_background_throttling_max_delay);
1018 1018
1019 WebRuntimeFeatures::enableVideoFullscreenDetection(
1020 prefs.video_fullscreen_detection_enabled);
1021
1019 #if defined(OS_ANDROID) 1022 #if defined(OS_ANDROID)
1020 settings->setAllowCustomScrollbarInMainFrame(false); 1023 settings->setAllowCustomScrollbarInMainFrame(false);
1021 settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled); 1024 settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled);
1022 settings->setAccessibilityFontScaleFactor(prefs.font_scale_factor); 1025 settings->setAccessibilityFontScaleFactor(prefs.font_scale_factor);
1023 settings->setDeviceScaleAdjustment(prefs.device_scale_adjustment); 1026 settings->setDeviceScaleAdjustment(prefs.device_scale_adjustment);
1024 settings->setFullscreenSupported(prefs.fullscreen_supported); 1027 settings->setFullscreenSupported(prefs.fullscreen_supported);
1025 web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom); 1028 web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom);
1026 settings->setAutoZoomFocusedNodeToLegibleScale(true); 1029 settings->setAutoZoomFocusedNodeToLegibleScale(true);
1027 settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled); 1030 settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled);
1028 settings->setMediaPlaybackRequiresUserGesture( 1031 settings->setMediaPlaybackRequiresUserGesture(
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 2721 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
2719 } 2722 }
2720 2723
2721 std::unique_ptr<InputEventAck> ack( 2724 std::unique_ptr<InputEventAck> ack(
2722 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), 2725 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(),
2723 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 2726 INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
2724 OnInputEventAck(std::move(ack)); 2727 OnInputEventAck(std::move(ack));
2725 } 2728 }
2726 2729
2727 } // namespace content 2730 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698