Chromium Code Reviews| Index: content/browser/browser_plugin/browser_plugin_guest.h |
| diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h |
| index 2a65623c5f19bd2c3c526c4177c6baabfbd4d045..88ddb67d077560859e6d1f427a59b685892d54fb 100644 |
| --- a/content/browser/browser_plugin/browser_plugin_guest.h |
| +++ b/content/browser/browser_plugin/browser_plugin_guest.h |
| @@ -81,6 +81,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsDelegate, |
| embedder_render_process_host_ = render_process_host; |
| } |
| + bool visible() const { return visible_; } |
| + |
| // WebContentsObserver implementation. |
| virtual void DidStartProvisionalLoadForFrame( |
| int64 frame_id, |
| @@ -132,6 +134,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsDelegate, |
| // accepting touch events. |
| void SetIsAcceptingTouchEvents(bool accept); |
| + void SetVisibility(bool embedder_visible, bool visible); |
|
Charlie Reis
2012/10/05 00:33:18
nit: Add a comment.
Fady Samuel
2012/10/05 15:22:07
Done.
|
| + |
| // Exposes the protected web_contents() from WebContentsObserver. |
| WebContents* GetWebContents(); |
| @@ -199,6 +203,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsDelegate, |
| IDMap<RenderViewHost> pending_updates_; |
| int pending_update_counter_; |
| base::TimeDelta guest_hang_timeout_; |
| + bool visible_; |
| DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| }; |