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

Unified Diff: content/public/renderer/browser_plugin_delegate.h

Issue 856563002: Added the infrastructure for surfaceProxy.onResize() and SurfaceView.onResize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed code from one non-essential function that was causing tests to fail. It will be re-added in… Created 5 years, 11 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/renderer/browser_plugin_delegate.h
diff --git a/content/public/renderer/browser_plugin_delegate.h b/content/public/renderer/browser_plugin_delegate.h
index 5485a7de5bc84a785d188b7b0550909473d5432a..dc68d8bac5fa236e27ed61d8c817200175877899 100644
--- a/content/public/renderer/browser_plugin_delegate.h
+++ b/content/public/renderer/browser_plugin_delegate.h
@@ -10,6 +10,10 @@
#include "content/common/content_export.h"
#include "ipc/ipc_message.h"
+namespace gfx {
+class Size;
+}
+
namespace v8 {
class Isolate;
class Object;
@@ -41,6 +45,10 @@ class CONTENT_EXPORT BrowserPluginDelegate {
// process.
virtual void SetElementInstanceID(int element_instance_id) {}
+ // Called when the plugin resizes.
+ virtual void DidResizeElement(const gfx::Size& old_size,
+ const gfx::Size& new_size) {}
+
// Called when a message is received. Returns true iff the message was
// handled.
virtual bool OnMessageReceived(const IPC::Message& message);

Powered by Google App Engine
This is Rietveld 408576698