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

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

Issue 427883002: <webview>: Move autosize from content to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_frame_url
Patch Set: Initialize variable 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: 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 cfc2afa0c78db596935d79e31cbc422422fc7930..2a1c78d6a826a37688c82ef51b15be498d5f78af 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -254,10 +254,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
// 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);
@@ -341,11 +337,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
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.
@@ -363,8 +354,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
// Last seen size of guest contents (by OnUpdateRect).
gfx::Size last_seen_view_size_;
- // Last seen autosize attribute state (by OnUpdateRect).
- bool last_seen_auto_size_enabled_;
+ // Last seen size of BrowserPlugin (by OnResizeGuest).
+ gfx::Size last_seen_browser_plugin_size_;
bool is_in_destruction_;
« no previous file with comments | « chrome/renderer/resources/extensions/web_view_events.js ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698