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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 11066032: Browser Plugin: Update Guest WebContents Visibility on BrowserPlugin Visiblity Change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a test Created 8 years, 2 months 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698