Commit 8f73bc9e authored by philipj@opera.com's avatar philipj@opera.com

Enable the mediaControlsOverlayPlayButtonEnabled setting on Android

BUG=366675

Review URL: https://codereview.chromium.org/257643002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266800 0039d316-1c4b-4281-b951-d872f2087c98
parent a3c28b7f
...@@ -734,10 +734,8 @@ const DataResource kDataResources[] = { ...@@ -734,10 +734,8 @@ const DataResource kDataResources[] = {
IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DOWN, ui::SCALE_FACTOR_100P }, IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DOWN, ui::SCALE_FACTOR_100P },
{ "mediaplayerFullscreenDisabled", { "mediaplayerFullscreenDisabled",
IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DISABLED, ui::SCALE_FACTOR_100P }, IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DISABLED, ui::SCALE_FACTOR_100P },
#if defined(OS_ANDROID)
{ "mediaplayerOverlayPlay", { "mediaplayerOverlayPlay",
IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON, ui::SCALE_FACTOR_100P }, IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON, ui::SCALE_FACTOR_100P },
#endif
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
{ "overhangPattern", IDR_OVERHANG_PATTERN, ui::SCALE_FACTOR_100P }, { "overhangPattern", IDR_OVERHANG_PATTERN, ui::SCALE_FACTOR_100P },
{ "overhangShadow", IDR_OVERHANG_SHADOW, ui::SCALE_FACTOR_100P }, { "overhangShadow", IDR_OVERHANG_SHADOW, ui::SCALE_FACTOR_100P },
......
...@@ -308,6 +308,7 @@ void ApplyWebPreferences(const WebPreferences& prefs, WebView* web_view) { ...@@ -308,6 +308,7 @@ void ApplyWebPreferences(const WebPreferences& prefs, WebView* web_view) {
web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom); web_view->setIgnoreViewportTagScaleLimits(prefs.force_enable_zoom);
settings->setAutoZoomFocusedNodeToLegibleScale(true); settings->setAutoZoomFocusedNodeToLegibleScale(true);
settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled); settings->setDoubleTapToZoomEnabled(prefs.double_tap_to_zoom_enabled);
settings->setMediaControlsOverlayPlayButtonEnabled(true);
settings->setMediaPlaybackRequiresUserGesture( settings->setMediaPlaybackRequiresUserGesture(
prefs.user_gesture_required_for_media_playback); prefs.user_gesture_required_for_media_playback);
settings->setDefaultVideoPosterURL( settings->setDefaultVideoPosterURL(
......
...@@ -48,9 +48,7 @@ ...@@ -48,9 +48,7 @@
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_HOVER" file="mediaplayer_fullscreen_hover.png" /> <structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_HOVER" file="mediaplayer_fullscreen_hover.png" />
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DOWN" file="mediaplayer_fullscreen_down.png" /> <structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DOWN" file="mediaplayer_fullscreen_down.png" />
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DISABLED" file="mediaplayer_fullscreen_disabled.png" /> <structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DISABLED" file="mediaplayer_fullscreen_disabled.png" />
<if expr="is_android"> <structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON" file="mediaplayer_overlay_play.png" />
<structure type="chrome_scaled_image" name="IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON" file="mediaplayer_overlay_play.png" />
</if>
<if expr="is_macosx"> <if expr="is_macosx">
<structure type="chrome_scaled_image" name="IDR_OVERHANG_PATTERN" file="overhang_pattern.png" /> <structure type="chrome_scaled_image" name="IDR_OVERHANG_PATTERN" file="overhang_pattern.png" />
<structure type="chrome_scaled_image" name="IDR_OVERHANG_SHADOW" file="overhang_shadow.png" /> <structure type="chrome_scaled_image" name="IDR_OVERHANG_SHADOW" file="overhang_shadow.png" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment