Get hidden state by using parent window directly

This commit is contained in:
Kevin Sawicki 2016-05-25 10:13:12 -07:00
parent 69c69880e5
commit 583bb49f6c
6 changed files with 41 additions and 25 deletions

View file

@ -8,6 +8,7 @@
#include <map>
#include "content/public/browser/browser_plugin_guest_manager.h"
#include "content/public/browser/web_contents.h"
namespace atom {
@ -22,6 +23,10 @@ class WebViewManager : public content::BrowserPluginGuestManager {
content::WebContents* web_contents);
void RemoveGuest(int guest_instance_id);
content::WebContents* GetEmbedder(int guest_instance_id);
static WebViewManager* GetWebViewManager(content::WebContents* web_contents);
protected:
// content::BrowserPluginGuestManager:
content::WebContents* GetGuestByInstanceID(int owner_process_id,