diff options
author | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 03:28:50 +0000 |
---|---|---|
committer | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 03:28:50 +0000 |
commit | ae72d81219fa0a2dc2fc48857160d3117bd56523 (patch) | |
tree | 9cf0f18e967a24c817e5769dfa8318633e609a52 /content/common | |
parent | cfc7821418ec8759df693d7abd2fcb1be1aa24c6 (diff) | |
download | chromium_src-ae72d81219fa0a2dc2fc48857160d3117bd56523.zip chromium_src-ae72d81219fa0a2dc2fc48857160d3117bd56523.tar.gz chromium_src-ae72d81219fa0a2dc2fc48857160d3117bd56523.tar.bz2 |
Request video element to enter fullscreen when playing protected content
This CL sends an IPC to the render process to request the video element to enter fullscreen.
Compared to the old approach, this is more compatible with the upcoming new fullscreen mode, which webkit uses FS API for fullscreen.
Currently we need the disable-gesture-requirement-for-fullscreen-media-playback flag for this to work. May consider making the flag default on android.
BUG=262945
Review URL: https://codereview.chromium.org/41123002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r-- | content/common/media/media_player_messages_android.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/common/media/media_player_messages_android.h b/content/common/media/media_player_messages_android.h index be13ecc..2c833eb 100644 --- a/content/common/media/media_player_messages_android.h +++ b/content/common/media/media_player_messages_android.h @@ -193,6 +193,10 @@ IPC_MESSAGE_ROUTED1(MediaPlayerMsg_ConnectedToRemoteDevice, IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DisconnectedFromRemoteDevice, int /* player_id */) +// Instructs the video element to enter fullscreen. +IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RequestFullscreen, + int /*player_id */) + // Messages for controlling the media playback in browser process ---------- // Destroy the media player object. |