| 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 c558b8f9b1f2c44df5f95ffa57e5306a8cad974b..8266cf33cdaf18b558fb305a79e56760226a8ed5 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
|
| @@ -223,6 +223,16 @@ bool BrowserPluginEmbedder::WereAnyGuestsRecentlyAudible() {
|
| base::Bind(&BrowserPluginEmbedder::GuestRecentlyAudibleCallback));
|
| }
|
|
|
| +bool BrowserPluginEmbedder::AreAnyGuestsFocused() {
|
| + BrowserPluginGuestManager::GuestCallback callback =
|
| + base::Bind([](WebContents* guest) {
|
| + return static_cast<WebContentsImpl*>(guest)
|
| + ->GetBrowserPluginGuest()
|
| + ->focused();
|
| + });
|
| + return GetBrowserPluginGuestManager()->ForEachGuest(web_contents(), callback);
|
| +}
|
| +
|
| // static
|
| bool BrowserPluginEmbedder::UnlockMouseIfNecessaryCallback(bool* mouse_unlocked,
|
| WebContents* guest) {
|
|
|