summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_widget_host_view_mac.mm
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-07 21:14:54 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-07 21:14:54 +0000
commit54ca3ca8928f3c4556f41f638b75b938e9cd0c98 (patch)
treee7ff8b4f3d198210036eb333afe40d5fcaf75b3b /chrome/browser/renderer_host/render_widget_host_view_mac.mm
parentc3217be503d6aeb920dc55f7c9a3f731ac63e3bd (diff)
downloadchromium_src-54ca3ca8928f3c4556f41f638b75b938e9cd0c98.zip
chromium_src-54ca3ca8928f3c4556f41f638b75b938e9cd0c98.tar.gz
chromium_src-54ca3ca8928f3c4556f41f638b75b938e9cd0c98.tar.bz2
Send live resize messages to renderer
This change sends live resize start/stop messages to the renderer. This is needed for overlay scrollbar support since we need to show overlay scrollbars on live resize start and hide them on live resize end. BUG=74057 TEST=Ran and verified that overlay scrollbars were shown during live resize. Review URL: http://codereview.chromium.org/6998002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88206 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host_view_mac.mm')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_mac.mm12
1 files changed, 12 insertions, 0 deletions
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 bf4ce95..f0d25f9 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2545,6 +2545,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
//