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

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: 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..2925d366f2a26a93c41fde135d28d3afe981d44b 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 OnElementResize(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);
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin.cc » ('j') | extensions/browser/extension_message_filter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698