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+

Description Ada Chan 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.
Comment 1 Ada Chan 2014-10-06 11:45:31 PDT
Created attachment 239344 [details]
Patch
Comment 2 Jer Noble 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.
Comment 3 Ada Chan 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!
Comment 4 Ada Chan 2014-10-06 14:37:08 PDT
Committed:
https://trac.webkit.org/changeset/174365