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

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

Issue 11360106: Browser Plugin: Implement AutoSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload 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 877bb50140dbb42075c9297c0d4ec4fb565eeafc..68812951a97532145b810cd17e8cdcb47c4d1ba9 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_AutoSize_Params;
struct BrowserPluginHostMsg_CreateGuest_Params;
struct BrowserPluginHostMsg_ResizeGuest_Params;
class TransportDIB;
@@ -178,6 +179,11 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
WebKit::WebDragOperationsMask drag_mask,
const gfx::Point& location);
+ // Updates the autosize state of the guest.
+ void SetAutoSize(
+ const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
+ const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params);
+
// Updates the cursor during dragging.
// During dragging, if the guest notifies to update the cursor for a drag,
// then it is necessary to route the cursor update to the embedder correctly
@@ -250,6 +256,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
const GURL& new_url,
bool is_top_level);
+ bool InAutoSizeBounds(const gfx::Size& size) const;
// Static factory instance (always NULL for non-test).
static content::BrowserPluginHostFactory* factory_;

Powered by Google App Engine
This is Rietveld 408576698