summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_widget.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 22:07:09 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 22:07:09 +0000
commit6ecc60e234224d61cb6a5157ebbc65448e66b716 (patch)
tree2cac2b706a1ea69febdc4060d5f25f54eee4a0ae /chrome/renderer/render_widget.cc
parent4f425554e926abb988a4949f8e93e1b0ddd1bc5f (diff)
downloadchromium_src-6ecc60e234224d61cb6a5157ebbc65448e66b716.zip
chromium_src-6ecc60e234224d61cb6a5157ebbc65448e66b716.tar.gz
chromium_src-6ecc60e234224d61cb6a5157ebbc65448e66b716.tar.bz2
Reverting 9493.
Review URL: http://codereview.chromium.org/21231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.cc')
-rw-r--r--chrome/renderer/render_widget.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index ad801b0..83732eb 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -229,15 +229,11 @@ void RenderWidget::OnClose() {
}
}
-void RenderWidget::OnResize(const gfx::Size& new_size,
- const gfx::Rect& resizer_rect) {
+void RenderWidget::OnResize(const gfx::Size& new_size) {
// During shutdown we can just ignore this message.
if (!webwidget_)
return;
- // Remember the rect where the resize corner will be drawn.
- resizer_rect_ = resizer_rect;
-
// TODO(darin): We should not need to reset this here.
is_hidden_ = false;
needs_repainting_on_restore_ = false;
@@ -698,7 +694,14 @@ void RenderWidget::GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect) {
void RenderWidget::GetRootWindowResizerRect(WebWidget* webwidget,
gfx::Rect* rect) {
- *rect = resizer_rect_;
+#if defined(OS_WIN)
+ Send(new ViewHostMsg_GetRootWindowResizerRect(routing_id_, host_window_,
+ rect));
+#else
+ // TODO(port): mac/linux currently choke on this message.
+ // See browser/renderer_host/render_message_host.cc.
+ NOTIMPLEMENTED();
+#endif
}
void RenderWidget::OnImeSetInputMode(bool is_active) {