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

Issue 23464080: [Android] Decouple pausing video from RenderView pause. (Closed)

Created:
7 years, 3 months ago by benm (inactive)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Decouple pausing video from RenderView pause. This way we can trigger video to pause from more than one place. BUG=263410 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224299

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : fixes #

Total comments: 2

Patch Set 4 : min's comment #

Total comments: 4

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -14 lines) Patch
M android_webview/native/aw_contents.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 3 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
benm (inactive)
ptal
7 years, 3 months ago (2013-09-18 18:18:41 UTC) #1
benm (inactive)
Bo says this is a Bad Idea. Will look at how we can plumb this ...
7 years, 3 months ago (2013-09-18 18:26:51 UTC) #2
benm (inactive)
OK, latest PS should not be a bad idea! PTAL.
7 years, 3 months ago (2013-09-19 01:44:30 UTC) #3
boliu
https://codereview.chromium.org/23464080/diff/7001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/23464080/diff/7001/android_webview/native/aw_contents.cc#newcode689 android_webview/native/aw_contents.cc:689: ContentViewCore::FromWebContents(web_contents_.get())->PauseVideo(); condition on if (paused) https://codereview.chromium.org/23464080/diff/7001/content/common/view_messages.h File content/common/view_messages.h (right): ...
7 years, 3 months ago (2013-09-19 01:58:39 UTC) #4
joth
lgtm w/ bo's nits too https://codereview.chromium.org/23464080/diff/7001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/23464080/diff/7001/android_webview/native/aw_contents.cc#newcode689 android_webview/native/aw_contents.cc:689: ContentViewCore::FromWebContents(web_contents_.get())->PauseVideo(); null check it. ...
7 years, 3 months ago (2013-09-19 02:41:50 UTC) #5
benm (inactive)
thanks! https://codereview.chromium.org/23464080/diff/7001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/23464080/diff/7001/android_webview/native/aw_contents.cc#newcode689 android_webview/native/aw_contents.cc:689: ContentViewCore::FromWebContents(web_contents_.get())->PauseVideo(); Done both, thanks! https://codereview.chromium.org/23464080/diff/7001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): ...
7 years, 3 months ago (2013-09-19 03:27:32 UTC) #6
joth
lgtm
7 years, 3 months ago (2013-09-19 03:30:48 UTC) #7
benm (inactive)
+palmer for IPC review +jamesr for content/renderer
7 years, 3 months ago (2013-09-19 03:31:00 UTC) #8
benm (inactive)
+bulach for content/public/browser/android Thanks all!
7 years, 3 months ago (2013-09-19 03:35:35 UTC) #9
bulach
lgtm for android, adding qinmin FYI for video-related changes..
7 years, 3 months ago (2013-09-19 09:45:53 UTC) #10
qinmin
lgtm https://codereview.chromium.org/23464080/diff/19001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/23464080/diff/19001/content/renderer/render_view_impl.cc#newcode1933 content/renderer/render_view_impl.cc:1933: media_player_manager_->ReleaseMediaResources(); nit: change the function name of ReleaseMediaResources() ...
7 years, 3 months ago (2013-09-19 16:37:37 UTC) #11
benm (inactive)
thanks Min! https://codereview.chromium.org/23464080/diff/19001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/23464080/diff/19001/content/renderer/render_view_impl.cc#newcode1933 content/renderer/render_view_impl.cc:1933: media_player_manager_->ReleaseMediaResources(); On 2013/09/19 16:37:38, qinmin wrote: > ...
7 years, 3 months ago (2013-09-19 17:51:25 UTC) #12
jamesr
why is pausing a video android-specific?
7 years, 3 months ago (2013-09-19 21:55:55 UTC) #13
benm (inactive)
On 2013/09/19 21:55:55, jamesr wrote: > why is pausing a video android-specific? Thanks James! It's ...
7 years, 3 months ago (2013-09-19 22:06:02 UTC) #14
palmer
IPC security LGTM. But can we make more of it get built only on Android ...
7 years, 3 months ago (2013-09-19 22:11:27 UTC) #15
jamesr
I don't understand why the implementation is android-specific either. This seems like a generic capability ...
7 years, 3 months ago (2013-09-19 22:12:30 UTC) #16
jamesr
+jam. This is a completely generic capability, but only android has a need for it ...
7 years, 3 months ago (2013-09-19 22:14:17 UTC) #17
benm (inactive)
On 2013/09/19 22:12:30, jamesr wrote: > I don't understand why the implementation is android-specific either. ...
7 years, 3 months ago (2013-09-19 22:18:39 UTC) #18
jamesr
On 2013/09/19 22:18:39, benm wrote: > It's desirable for us to be able to pause ...
7 years, 3 months ago (2013-09-19 22:22:32 UTC) #19
benm (inactive)
On 2013/09/19 22:22:32, jamesr wrote: > I get that and agree decoupling is nice. The ...
7 years, 3 months ago (2013-09-19 22:28:20 UTC) #20
qinmin
On 2013/09/19 22:28:20, benm wrote: > On 2013/09/19 22:22:32, jamesr wrote: > > I get ...
7 years, 3 months ago (2013-09-19 22:46:34 UTC) #21
jamesr
content/renderer/ lgtm https://codereview.chromium.org/23464080/diff/26001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/23464080/diff/26001/content/renderer/render_view_impl.cc#newcode1929 content/renderer/render_view_impl.cc:1929: // unless some audio is playing. this ...
7 years, 3 months ago (2013-09-19 23:17:28 UTC) #22
benm (inactive)
Thanks folks :) https://codereview.chromium.org/23464080/diff/26001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/23464080/diff/26001/content/renderer/render_view_impl.cc#newcode1929 content/renderer/render_view_impl.cc:1929: // unless some audio is playing. ...
7 years, 3 months ago (2013-09-20 01:25:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/23464080/40001
7 years, 3 months ago (2013-09-20 01:38:16 UTC) #24
commit-bot: I haz the power
7 years, 3 months ago (2013-09-20 05:52:55 UTC) #25
Message was sent while issue was closed.
Change committed as 224299

Powered by Google App Engine
This is Rietveld 408576698