Bug 137220

Summary: Add a ChromeClient API that gets called whenever the Page's audio playing state has changed
Product: WebKit Reporter: Ada Chan <adachan>
Component: MediaAssignee: Ada Chan <adachan>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, jer.noble
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 137050    
Attachments:
Description Flags
Patch jer.noble: review+

Ada Chan
Reported 2014-09-29 11:27:56 PDT
It'll most likely be: virtual void isPlayingAudioDidChange(bool) to match the bool isPlayingAudio() const; we are adding to WebCore::Page. See https://bugs.webkit.org/show_bug.cgi?id=137218.
Attachments
Patch (2.59 KB, patch)
2014-10-06 11:45 PDT, Ada Chan
jer.noble: review+
Ada Chan
Comment 1 2014-10-06 11:45:31 PDT
Jer Noble
Comment 2 2014-10-06 14:20:46 PDT
Comment on attachment 239344 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=239344&action=review r=me, with nit. > Source/WebCore/page/ChromeClient.h:434 > + virtual void isPlayingAudioDidChange(bool /*newIsPlayingAudio*/) { } Nit: You don't need to include the (commented out) parameter name here. It's obvious from the function name.
Ada Chan
Comment 3 2014-10-06 14:24:44 PDT
(In reply to comment #2) > (From update of attachment 239344 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=239344&action=review > > r=me, with nit. > > > Source/WebCore/page/ChromeClient.h:434 > > + virtual void isPlayingAudioDidChange(bool /*newIsPlayingAudio*/) { } > > Nit: You don't need to include the (commented out) parameter name here. It's obvious from the function name. I'll remove it. Thanks for the review!
Ada Chan
Comment 4 2014-10-06 14:37:08 PDT
Note You need to log in before you can comment on or make changes to this bug.