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

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

Issue 446823002: Revert 287732 "<webview>: Move autosize from content to chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/content/browser/browser_plugin/browser_plugin_guest.h
===================================================================
--- trunk/src/content/browser/browser_plugin/browser_plugin_guest.h (revision 287745)
+++ trunk/src/content/browser/browser_plugin/browser_plugin_guest.h (working copy)
@@ -254,6 +254,10 @@
// access it.
void OnSetName(int instance_id, const std::string& name);
// Updates the size state of the guest.
+ void OnSetAutoSize(
+ int instance_id,
+ const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
+ const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params);
void OnSetEditCommandsForNextKeyEvent(
int instance_id,
const std::vector<EditCommand>& edit_commands);
@@ -337,6 +341,11 @@
bool guest_visible_;
bool guest_opaque_;
bool embedder_visible_;
+ std::string name_;
+ bool auto_size_enabled_;
+ gfx::Size max_auto_size_;
+ gfx::Size min_auto_size_;
+ gfx::Size full_size_;
// Each copy-request is identified by a unique number. The unique number is
// used to keep track of the right callback.
@@ -354,8 +363,8 @@
// Last seen size of guest contents (by OnUpdateRect).
gfx::Size last_seen_view_size_;
- // Last seen size of BrowserPlugin (by OnResizeGuest).
- gfx::Size last_seen_browser_plugin_size_;
+ // Last seen autosize attribute state (by OnUpdateRect).
+ bool last_seen_auto_size_enabled_;
bool is_in_destruction_;

Powered by Google App Engine
This is Rietveld 408576698