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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

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
« no previous file with comments | « content/public/renderer/browser_plugin_delegate.h ('k') | extensions/browser/extension_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index a1a84fccc1edd8ac528bed2a65482db206865428..0f1935acbdfd17d86607dbe4858aad288fc73c4e 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -446,8 +446,10 @@ void BrowserPlugin::updateGeometry(
int old_height = height();
plugin_rect_ = window_rect;
if (!ready_) {
- if (delegate_)
+ if (delegate_) {
+ delegate_->DidResizeElement(gfx::Size(), plugin_size());
delegate_->Ready();
+ }
ready_ = true;
}
if (!attached())
@@ -466,6 +468,11 @@ void BrowserPlugin::updateGeometry(
render_view_routing_id_,
browser_plugin_instance_id_,
params));
+
+ if (delegate_) {
+ delegate_->DidResizeElement(
+ gfx::Size(old_width, old_height), plugin_size());
+ }
}
void BrowserPlugin::PopulateResizeGuestParameters(
« no previous file with comments | « content/public/renderer/browser_plugin_delegate.h ('k') | extensions/browser/extension_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698