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

Issue 1970313002: Audio notification plumbed from guest WebContents up to embedder. (Closed)

Created:
4 years, 7 months ago by wjmaclean
Modified:
4 years, 7 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Audio notification plumbed from guest WebContents up to embedder. When a guest webcontents is playing audio, there is no way for an entity interacting with the embedder webcontents to determine this. This CL adds two things: i) The ability for WebContentsImpl::WasRecentlyAudible() to query any guest/child contents to determine if they were recently audible, and ii) the ability for a guest webcontents to pass any navigation state changes up to the embedder in order to make them visible at the top level. BUG=590656 Committed: https://crrev.com/1dabf3e34c14d34d9fb262a54cd26c1878eb0034 Cr-Commit-Position: refs/heads/master@{#393689}

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 8

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -1 line) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view/simple/ping.mp3 View 1 Binary file 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 24 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970313002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970313002/1
4 years, 7 months ago (2016-05-12 17:51:53 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/69436)
4 years, 7 months ago (2016-05-12 19:48:15 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970313002/20001
4 years, 7 months ago (2016-05-13 20:08:57 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970313002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970313002/40001
4 years, 7 months ago (2016-05-13 20:11:55 UTC) #9
wjmaclean
creis@ - small CL, please take a look?
4 years, 7 months ago (2016-05-13 20:12:31 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 21:35:55 UTC) #14
Avi (use Gerrit)
Charlie shed some review load; I'm taking this. LGTM with nits. https://codereview.chromium.org/1970313002/diff/40001/chrome/browser/apps/guest_view/web_view_browsertest.cc File chrome/browser/apps/guest_view/web_view_browsertest.cc (right): ...
4 years, 7 months ago (2016-05-13 21:54:26 UTC) #16
wjmaclean
Thanks Avi! https://codereview.chromium.org/1970313002/diff/40001/chrome/browser/apps/guest_view/web_view_browsertest.cc File chrome/browser/apps/guest_view/web_view_browsertest.cc (right): https://codereview.chromium.org/1970313002/diff/40001/chrome/browser/apps/guest_view/web_view_browsertest.cc#newcode809 chrome/browser/apps/guest_view/web_view_browsertest.cc:809: class MockWasAudibleWebContentsDelegate : public content::WebContentsDelegate { On ...
4 years, 7 months ago (2016-05-13 22:17:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970313002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970313002/60001
4 years, 7 months ago (2016-05-13 22:17:56 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 7 months ago (2016-05-13 23:34:55 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 23:36:58 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1dabf3e34c14d34d9fb262a54cd26c1878eb0034
Cr-Commit-Position: refs/heads/master@{#393689}

Powered by Google App Engine
This is Rietveld 408576698