| Index: content/browser/browser_plugin/browser_plugin_embedder.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| index 274315ecd3b9e022242696df9ea3938812a6e682..f02b5ae9b8beff3fca8c4704e7298f6081224118 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| @@ -219,6 +219,17 @@ BrowserPluginGuest* BrowserPluginEmbedder::GetFullPageGuest() {
|
| }
|
|
|
| // static
|
| +bool BrowserPluginEmbedder::GuestRecentlyAudibleCallback(WebContents* guest) {
|
| + return guest->WasRecentlyAudible();
|
| +}
|
| +
|
| +bool BrowserPluginEmbedder::WereAnyGuestsRecentlyAudible() {
|
| + return GetBrowserPluginGuestManager()->ForEachGuest(
|
| + web_contents(),
|
| + base::Bind(&BrowserPluginEmbedder::GuestRecentlyAudibleCallback));
|
| +}
|
| +
|
| +// static
|
| bool BrowserPluginEmbedder::UnlockMouseIfNecessaryCallback(bool* mouse_unlocked,
|
| WebContents* guest) {
|
| *mouse_unlocked |= static_cast<WebContentsImpl*>(guest)
|
|
|