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

Unified Diff: content/public/browser/browser_plugin_guest_delegate.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/public/browser/browser_plugin_guest_delegate.h
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
index 05a0efb53add4951287daf95e6f554eea3504db6..2818982bef637d3c0507dc2b96d793e3a14c32a5 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -40,9 +40,15 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
// Requests the instance ID associated with the delegate.
virtual int GetGuestInstanceID() const;
- // Notifies that the content size of the guest has changed in autosize mode.
- virtual void SizeChanged(const gfx::Size& old_size,
- const gfx::Size& new_size) {}
+ // Notification that the BrowserPlugin has resized.
+ virtual void ElementSizeChanged(const gfx::Size& old_size,
+ const gfx::Size& new_size) {}
+
+ // Notifies that the content size of the guest has changed.
+ // Note: In autosize mode, it si possible that the guest size may not match
+ // the element size.
+ virtual void GuestSizeChanged(const gfx::Size& old_size,
+ const gfx::Size& new_size) {}
// Asks the delegate if the given guest can lock the pointer.
// Invoking the |callback| synchronously is OK.
« no previous file with comments | « content/common/browser_plugin/browser_plugin_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698