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

Issue 25040002: Enables fullscreen subtitle and media control from Blink (Closed)

Created:
7 years, 2 months ago by trchen
Modified:
6 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, nona+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, James Su, jochen+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@build_hack
Visibility:
Public.

Description

Enables fullscreen subtitle and media control from Blink In detail, this patch does the following things: - Move the Blink SurfaceView on top of ContentVideoView - Enable necessary bits on the compositor to make background transparent, and enables alpha blending. - Introduce a new command-line flag to enable the new mode. The old-style Java media control are moved to ContentVideoViewLegacy, which is enabled by default. To enable the blink-based media control, do the following: adb shell sudo echo chrome --enable-overlay-fullscreen-video-subtitle > /data/local/chrome-command-line R= BUG=262945 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243743

Patch Set 1 #

Total comments: 7

Patch Set 2 : rebased, +option flag #

Total comments: 19

Patch Set 3 : revised as suggested. add back button fix. #

Patch Set 4 : rebased, let's go! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -232 lines) Patch
M content/browser/android/content_video_view.cc View 1 2 3 3 chunks +11 lines, -3 lines 0 comments Download
M content/browser/android/content_view_render_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_render_view.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java View 1 2 17 chunks +43 lines, -228 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/ContentVideoViewLegacy.java View 1 2 1 chunk +268 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java View 1 2 4 chunks +14 lines, -0 lines 0 comments Download
M content/public/browser/android/compositor.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 1 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
trchen
7 years, 2 months ago (2013-09-27 13:15:29 UTC) #1
qinmin
looks good, just one question https://codereview.chromium.org/25040002/diff/1/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/25040002/diff/1/content/browser/android/content_view_render_view.cc#newcode92 content/browser/android/content_view_render_view.cc:92: nit: extra blank line ...
7 years, 2 months ago (2013-09-27 19:39:23 UTC) #2
trchen
https://codereview.chromium.org/25040002/diff/1/content/browser/android/content_view_render_view.cc File content/browser/android/content_view_render_view.cc (right): https://codereview.chromium.org/25040002/diff/1/content/browser/android/content_view_render_view.cc#newcode92 content/browser/android/content_view_render_view.cc:92: On 2013/09/27 19:39:23, qinmin wrote: > nit: extra blank ...
7 years, 2 months ago (2013-09-27 22:38:41 UTC) #3
qinmin
lgtm
7 years, 2 months ago (2013-09-28 00:06:46 UTC) #4
aelias_OOO_until_Jul13
lgtm for content/browser/renderer_host/
7 years, 2 months ago (2013-09-28 00:08:01 UTC) #5
Ted C
seems fine to me, but I just want to make sure we don't miss the ...
7 years, 2 months ago (2013-09-30 15:54:35 UTC) #6
trchen
This is an updated version of this patch. The main change is to keep the ...
7 years ago (2013-12-21 01:26:17 UTC) #7
trchen
+joi Can we add a new command line flag to try out this experimental feature? ...
7 years ago (2013-12-21 01:29:27 UTC) #8
qinmin
lgtm % nits https://codereview.chromium.org/25040002/diff/93001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/25040002/diff/93001/content/browser/media/android/browser_media_player_manager.cc#newcode182 content/browser/media/android/browser_media_player_manager.cc:182: if (RenderWidgetHostViewAndroid* view_android = nit: add ...
7 years ago (2013-12-21 01:35:13 UTC) #9
Jói
//content/public (minus Java bits - I think you have a different reviewer for those) LGTM.
7 years ago (2013-12-21 08:54:55 UTC) #10
Ted C
What about ChromiumTestShellActivity? https://codereview.chromium.org/25040002/diff/93001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java File content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java (right): https://codereview.chromium.org/25040002/diff/93001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode158 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:158: protected void showContentVideoView() { All non-private ...
6 years, 12 months ago (2013-12-26 23:06:14 UTC) #11
trchen
Fullscreen video doesn't work with ChromiumTestShell currently. Will file a bug to keep track of ...
6 years, 12 months ago (2013-12-26 23:22:45 UTC) #12
Ted C
https://codereview.chromium.org/25040002/diff/93001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java File content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java (right): https://codereview.chromium.org/25040002/diff/93001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode367 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:367: private static ContentVideoView createContentVideoViewLegacy( On 2013/12/26 23:22:46, trchen wrote: ...
6 years, 12 months ago (2013-12-27 00:15:34 UTC) #13
trchen
On 2013/12/27 00:15:34, Ted C wrote: > https://codereview.chromium.org/25040002/diff/93001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java > File > content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java > (right): > ...
6 years, 12 months ago (2013-12-27 00:24:30 UTC) #14
Ted C
On 2013/12/27 00:24:30, trchen wrote: > On 2013/12/27 00:15:34, Ted C wrote: > > > ...
6 years, 12 months ago (2013-12-27 00:51:09 UTC) #15
trchen
This patch is revised as suggested, except that protected method in ContentVideoView are not commented ...
6 years, 11 months ago (2014-01-07 01:38:21 UTC) #16
Ted C
On 2014/01/07 01:38:21, trchen wrote: > This patch is revised as suggested, except that protected ...
6 years, 11 months ago (2014-01-08 00:52:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/25040002/333001
6 years, 11 months ago (2014-01-08 23:40:28 UTC) #18
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 02:16:01 UTC) #19
Message was sent while issue was closed.
Change committed as 243743

Powered by Google App Engine
This is Rietveld 408576698