Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2187)

Unified Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 769363002: Initialize BrowserPluginGuest to attach to the View hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basic_detach_plumbing
Patch Set: Don't initialize by default Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698