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

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

Issue 11361052: Browser Plugin: Implement autosize (Embedder-side code) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BrowserPluginHostMsg_AutoSize_Params had an int instead of bool for enable: fixed Created 8 years, 1 month 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 31736c47fc12bc6ebd09b8ff2d5955151f1dd0c2..6a44a152c97d5f10063c5ef7b9908f91b3ce82b0 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -43,6 +43,7 @@
#include "ui/gfx/rect.h"
#include "webkit/glue/webcursor.h"
+struct BrowserPluginHostMsg_CreateGuest_Params;
class TransportDIB;
struct ViewHostMsg_UpdateRect_Params;
struct WebDropData;
@@ -68,11 +69,11 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
public:
virtual ~BrowserPluginGuest();
- static BrowserPluginGuest* Create(int instance_id,
- WebContentsImpl* web_contents,
- content::RenderViewHost* render_view_host,
- bool focused,
- bool visible);
+ static BrowserPluginGuest* Create(
+ int instance_id,
+ WebContentsImpl* web_contents,
+ content::RenderViewHost* render_view_host,
+ const BrowserPluginHostMsg_CreateGuest_Params& params);
// Overrides factory for testing. Default (NULL) value indicates regular
// (non-test) environment.
@@ -219,8 +220,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
BrowserPluginGuest(int instance_id,
WebContentsImpl* web_contents,
RenderViewHost* render_view_host,
- bool focused,
- bool visible);
+ const BrowserPluginHostMsg_CreateGuest_Params& params);
// Returns the identifier that uniquely identifies a browser plugin guest
// within an embedder.
@@ -262,6 +262,11 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
base::TimeDelta guest_hang_timeout_;
bool focused_;
bool visible_;
+ bool auto_size_;
+ int max_height_;
+ int max_width_;
+ int min_height_;
+ int min_width_;
DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
};

Powered by Google App Engine
This is Rietveld 408576698