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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 6998002: Send live resize messages to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed comment Created 9 years, 7 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 | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index edb282fbea1c4a8fa322bd5856b6f3868099fa6a..cbd0fc5e9900c9af8dacd91c3aaa5811dbb3a96e 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2500,6 +2500,18 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
return requestor;
}
+- (void)viewWillStartLiveResize {
+ [super viewWillStartLiveResize];
+ RenderWidgetHost* widget = renderWidgetHostView_->render_widget_host_;
+ widget->Send(new ViewMsg_SetInLiveResize(widget->routing_id(), true));
+}
+
+- (void)viewDidEndLiveResize {
+ [super viewDidEndLiveResize];
+ RenderWidgetHost* widget = renderWidgetHostView_->render_widget_host_;
+ widget->Send(new ViewMsg_SetInLiveResize(widget->routing_id(), false));
+}
+
@end
//
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698