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

Issue 2154883003: Make ContentVideoView progress view visible in WebView (Closed)

Created:
4 years, 5 months ago by Tima Vaisburd
Modified:
4 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ContentVideoView progress view visible in WebView The progress view used to be part of ContentVideoView underlay. In the current Spitzer implementation for WebView FullScreenView got opaque content which now obstructs the progress bar. This CL removes the progress bar from ContentVideoView and makes the ContentVideoViewEmbedder responsible for its creation and display. As well, the progress bar remained in WebView only and has been removed from Chrome. BUG=628828 NOPRESUBMIT=true Committed: https://crrev.com/ee5c228c4753bd80e1f6f14e7cbc7ee3c673b00c Cr-Commit-Position: refs/heads/master@{#410234}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Take into account whether Spitzer is enabled #

Total comments: 4

Patch Set 3 : Moved Java method isUnifiedMediaPipelineEnabled from AwContents to MediaCodecUtil #

Patch Set 4 : Moved progress view to WebView embedder #

Patch Set 5 : Cleanup #

Total comments: 6

Patch Set 6 : Addressed comments #

Total comments: 6

Patch Set 7 : Removed getVideoLoadingProgressView from the embedder protocol; moved a string to WebView resources. #

Patch Set 8 : Fixed compilation, rebased #

Patch Set 9 : Fixed unit test #

Total comments: 12

Patch Set 10 : Improved formatting #

Patch Set 11 : Fixed Java continuation lines identation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -99 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java View 1 2 3 4 5 6 5 chunks +49 lines, -5 lines 0 comments Download
M android_webview/java/strings/android_webview_strings.grd View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M android_webview/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/test/shell/assets/full_screen_video_test.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
A + android_webview/test/shell/assets/full_screen_video_test_not_preloaded.html View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanel.java View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/android/content_video_view.h View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/android/content_video_view.cc View 1 2 3 3 chunks +10 lines, -8 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 1 chunk +11 lines, -1 line 0 comments Download
M content/browser/media/android/browser_surface_view_manager.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ActivityContentVideoViewEmbedder.java View 1 2 3 4 5 6 3 chunks +4 lines, -6 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java View 1 2 3 4 5 6 7 8 9 10 8 chunks +24 lines, -48 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentVideoViewEmbedder.java View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -7 lines 0 comments Download
M content/public/android/java/strings/android_content_strings.grd View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 78 (27 generated)
Tima Vaisburd
This is a rather simplistic approach. Maybe we should have a separate class for progress ...
4 years, 5 months ago (2016-07-16 01:19:18 UTC) #1
Tima Vaisburd
This is a rather simplistic approach. Maybe we should have a separate class for progress ...
4 years, 5 months ago (2016-07-18 20:57:20 UTC) #3
boliu
who's reviewing content? looks like that's where the complexity of this CL is https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File ...
4 years, 5 months ago (2016-07-18 21:06:32 UTC) #4
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode99 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:99: return false; On 2016/07/18 21:06:32, boliu wrote: > On ...
4 years, 5 months ago (2016-07-18 21:10:14 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode151 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:151: mCustomView.addView(fullscreenView); On 2016/07/18 21:06:32, boliu wrote: > addView(0, fullscreenView) ...
4 years, 5 months ago (2016-07-22 17:11:36 UTC) #6
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode99 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:99: return false; On 2016/07/18 21:10:14, Tima Vaisburd wrote: > ...
4 years, 5 months ago (2016-07-22 22:48:54 UTC) #8
boliu
https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode151 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:151: mCustomView.addView(fullscreenView); On 2016/07/22 22:48:53, Tima Vaisburd wrote: > On ...
4 years, 5 months ago (2016-07-22 22:57:32 UTC) #9
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode151 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:151: mCustomView.addView(fullscreenView); On 2016/07/22 22:57:31, boliu wrote: > How strong ...
4 years, 5 months ago (2016-07-23 00:07:27 UTC) #10
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2154883003/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1267 android_webview/java/src/org/chromium/android_webview/AwContents.java:1267: public static boolean isUnifiedMediaPipelineEnabled() { On 2016/07/23 00:07:27, Tima ...
4 years, 5 months ago (2016-07-23 03:50:58 UTC) #11
liberato (no reviews please)
random thoughts, maybe nonsensical. :) thanks -fl https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode151 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:151: mCustomView.addView(fullscreenView); On ...
4 years, 5 months ago (2016-07-25 15:43:28 UTC) #12
boliu
https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/1/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode151 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:151: mCustomView.addView(fullscreenView); On 2016/07/25 15:43:28, liberato wrote: > it would ...
4 years, 5 months ago (2016-07-25 15:48:45 UTC) #13
Tima Vaisburd
Thank you for the review! I have a couple of questions. On 2016/07/25 15:43:28, liberato ...
4 years, 5 months ago (2016-07-25 17:14:42 UTC) #14
liberato (no reviews please)
On 2016/07/25 17:14:42, Tima Vaisburd wrote: > Thank you for the review! > I have ...
4 years, 5 months ago (2016-07-25 17:40:33 UTC) #15
watk
There used to be a visible progress view in chrome, but I found that it ...
4 years, 5 months ago (2016-07-25 21:59:14 UTC) #16
liberato (no reviews please)
On 2016/07/25 21:59:14, watk wrote: > There used to be a visible progress view in ...
4 years, 5 months ago (2016-07-25 22:02:45 UTC) #17
Tima Vaisburd
On 2016/07/25 22:02:45, liberato wrote: > if it's off and nobody misses it, then i ...
4 years, 5 months ago (2016-07-25 22:07:04 UTC) #18
liberato (no reviews please)
On 2016/07/25 22:07:04, Tima Vaisburd wrote: > On 2016/07/25 22:02:45, liberato wrote: > > if ...
4 years, 5 months ago (2016-07-25 22:10:25 UTC) #19
Tima Vaisburd
On 2016/07/25 22:10:25, liberato wrote: > On 2016/07/25 22:07:04, Tima Vaisburd wrote: > > On ...
4 years, 5 months ago (2016-07-25 22:20:45 UTC) #20
watk
On 2016/07/25 22:10:25, liberato wrote: > On 2016/07/25 22:07:04, Tima Vaisburd wrote: > > On ...
4 years, 5 months ago (2016-07-25 22:30:41 UTC) #21
Tima Vaisburd
> On 2016/07/25 22:10:25, liberato wrote: > > > > if it's off and nobody ...
4 years, 4 months ago (2016-07-27 02:34:01 UTC) #23
liberato (no reviews please)
On 2016/07/27 02:34:01, Tima Vaisburd wrote: > > On 2016/07/25 22:10:25, liberato wrote: > > ...
4 years, 4 months ago (2016-07-27 15:52:11 UTC) #24
Tima Vaisburd
On 2016/07/27 15:52:11, liberato wrote: > On 2016/07/27 02:34:01, Tima Vaisburd wrote: > > > ...
4 years, 4 months ago (2016-07-27 20:39:33 UTC) #25
boliu
On 2016/07/27 20:39:33, Tima Vaisburd wrote: > On 2016/07/27 15:52:11, liberato wrote: > > On ...
4 years, 4 months ago (2016-07-27 20:40:57 UTC) #26
Tima Vaisburd
On 2016/07/27 20:40:57, boliu wrote: > On 2016/07/27 20:39:33, Tima Vaisburd wrote: > > On ...
4 years, 4 months ago (2016-07-27 20:43:32 UTC) #27
sgurun-gerrit only
On 2016/07/27 20:43:32, Tima Vaisburd wrote: > On 2016/07/27 20:40:57, boliu wrote: > > On ...
4 years, 4 months ago (2016-07-28 21:05:58 UTC) #28
liberato (no reviews please)
On 2016/07/28 21:05:58, sgurun wrote: > On 2016/07/27 20:43:32, Tima Vaisburd wrote: > > On ...
4 years, 4 months ago (2016-07-28 21:24:54 UTC) #29
watk
On 2016/07/28 21:24:54, liberato wrote: > On 2016/07/28 21:05:58, sgurun wrote: > > On 2016/07/27 ...
4 years, 4 months ago (2016-07-28 21:31:56 UTC) #30
Tima Vaisburd
> You have to fullscreen a video > element before it has metadata, which isn't ...
4 years, 4 months ago (2016-07-28 22:31:30 UTC) #31
watk
On 2016/07/28 22:31:30, Tima Vaisburd wrote: > > You have to fullscreen a video > ...
4 years, 4 months ago (2016-07-28 22:39:06 UTC) #32
Tima Vaisburd
On 2016/07/28 22:39:06, watk wrote: > Actually I wasn't referring to that. Rather when we ...
4 years, 4 months ago (2016-07-28 23:16:25 UTC) #33
watk
lgtm https://codereview.chromium.org/2154883003/diff/80001/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/2154883003/diff/80001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode130 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:130: mIsVideoLoaded = videoWidth > 0 && videoHeight > ...
4 years, 4 months ago (2016-08-01 19:26:53 UTC) #34
boliu
this is not removing the progress view altogether? there are cases it's still needed with ...
4 years, 4 months ago (2016-08-02 17:50:56 UTC) #35
Tima Vaisburd
boliu@> this is not removing the progress view altogether? boliu@> there are cases it's still ...
4 years, 4 months ago (2016-08-02 21:47:37 UTC) #36
boliu
https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode120 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:120: public View getVideoLoadingProgressView() { does this still need to ...
4 years, 4 months ago (2016-08-03 05:33:21 UTC) #37
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode120 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:120: public View getVideoLoadingProgressView() { On 2016/08/03 05:33:21, boliu wrote: ...
4 years, 4 months ago (2016-08-03 21:47:23 UTC) #38
boliu
lgtm % string question https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode202 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:202: context.getString(org.chromium.content.R.string.media_player_loading_video); On 2016/08/03 21:47:23, Tima ...
4 years, 4 months ago (2016-08-03 21:52:54 UTC) #41
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java File android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java (right): https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java#newcode202 android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java:202: context.getString(org.chromium.content.R.string.media_player_loading_video); On 2016/08/03 21:52:54, boliu wrote: > On 2016/08/03 ...
4 years, 4 months ago (2016-08-03 22:03:35 UTC) #44
Tima Vaisburd
On 2016/08/03 22:03:35, Tima Vaisburd wrote: > https://codereview.chromium.org/2154883003/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java > File > android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java > (right): > ...
4 years, 4 months ago (2016-08-04 01:09:13 UTC) #47
Tima Vaisburd
Ted, owner review, please.
4 years, 4 months ago (2016-08-04 01:09:56 UTC) #49
Tima Vaisburd
On 2016/08/04 01:09:56, Tima Vaisburd wrote: > Ted, owner review, please. I meant "Could you ...
4 years, 4 months ago (2016-08-04 22:59:10 UTC) #56
Ted C
lgtm...not blocking on my api comment and the other things are trivial nits https://codereview.chromium.org/2154883003/diff/160001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java File ...
4 years, 4 months ago (2016-08-05 00:19:05 UTC) #57
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/160001/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/2154883003/diff/160001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode135 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:135: mEmbedder.enterFullscreenVideo(this, mIsVideoLoaded); On 2016/08/05 00:19:05, Ted C wrote: > ...
4 years, 4 months ago (2016-08-05 01:24:02 UTC) #58
Ted C
https://codereview.chromium.org/2154883003/diff/160001/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/2154883003/diff/160001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode135 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:135: mEmbedder.enterFullscreenVideo(this, mIsVideoLoaded); On 2016/08/05 01:24:01, Tima Vaisburd wrote: > ...
4 years, 4 months ago (2016-08-05 17:36:31 UTC) #61
Tima Vaisburd
https://codereview.chromium.org/2154883003/diff/160001/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/2154883003/diff/160001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode135 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:135: mEmbedder.enterFullscreenVideo(this, mIsVideoLoaded); On 2016/08/05 17:36:31, Ted C wrote: > ...
4 years, 4 months ago (2016-08-05 20:13:57 UTC) #64
Ted C
On 2016/08/05 20:13:57, Tima Vaisburd wrote: > https://codereview.chromium.org/2154883003/diff/160001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java > File > content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java > (right): > ...
4 years, 4 months ago (2016-08-05 20:34:57 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154883003/200001
4 years, 4 months ago (2016-08-05 21:49:04 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/232310)
4 years, 4 months ago (2016-08-05 21:56:38 UTC) #70
Tima Vaisburd
On 2016/08/05 20:34:57, Ted C wrote: > If you get warnings about presubmit, then you ...
4 years, 4 months ago (2016-08-05 22:06:40 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154883003/200001
4 years, 4 months ago (2016-08-06 00:14:33 UTC) #74
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-06 00:49:28 UTC) #76
commit-bot: I haz the power
4 years, 4 months ago (2016-08-06 00:52:58 UTC) #78
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/ee5c228c4753bd80e1f6f14e7cbc7ee3c673b00c
Cr-Commit-Position: refs/heads/master@{#410234}

Powered by Google App Engine
This is Rietveld 408576698