Bug 137220 - Add a ChromeClient API that gets called whenever the Page's audio playing state has changed
Summary: Add a ChromeClient API that gets called whenever the Page's audio playing sta...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ada Chan
URL:
Keywords:
Depends on:
Blocks: 137050
  Show dependency treegraph
 
Reported: 2014-09-29 11:27 PDT by Ada Chan
Modified: 2014-10-06 14:37 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.59 KB, patch)
2014-10-06 11:45 PDT, Ada Chan
jer.noble: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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