Chromium Code Reviews| Index: content/public/browser/browser_plugin_guest_delegate.h |
| diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h |
| index 8fa82c66cb8956bb94b04b0030e5bc345d37cc83..4e073ab83523768b0c5830d9fa872a434489fd35 100644 |
| --- a/content/public/browser/browser_plugin_guest_delegate.h |
| +++ b/content/public/browser/browser_plugin_guest_delegate.h |
| @@ -36,6 +36,10 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
| virtual WebContents* CreateNewGuestWindow( |
| const WebContents::CreateParams& create_params); |
| + // Asks the delegate whether this guest can run while detached from a |
| + // container. |
| + virtual bool CanRunInDetachedState() const; |
|
lazyboy
2014/12/04 16:51:13
Explain "detached" a bit more here.
Fady Samuel
2014/12/04 20:54:44
Done.
|
| + |
| // Notification that the embedder has completed attachment. The |
| // |guest_proxy_routing_id| is the routing ID for the RenderView in the |
| // embedder that will serve as a contentWindow proxy for the guest. |
| @@ -48,6 +52,9 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
| virtual void ElementSizeChanged(const gfx::Size& old_size, |
| const gfx::Size& new_size) {} |
| + // Returns the WebContents that currently owns this guest. |
| + virtual WebContents* GetOwnerWebContents() const; |
| + |
| // Notifies that the content size of the guest has changed. |
| // Note: In autosize mode, it si possible that the guest size may not match |
| // the element size. |