summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/hung_renderer_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 19:51:12 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 19:51:12 +0000
commitac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01 (patch)
treee6f97dcde442f34858e6b4283fa2f3d457404ce0 /chrome/browser/ui/views/hung_renderer_view.cc
parentfca58f01b8ca6d8795ee617f211465e924ff33c7 (diff)
downloadchromium_src-ac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01.zip
chromium_src-ac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01.tar.gz
chromium_src-ac1f2faf8571fbeb2cf0e2cc52de5ccdd858cb01.tar.bz2
Move SetWindowBounds onto Widget.
BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6976047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/hung_renderer_view.cc')
-rw-r--r--chrome/browser/ui/views/hung_renderer_view.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/ui/views/hung_renderer_view.cc b/chrome/browser/ui/views/hung_renderer_view.cc
index c913ca2..031f95b 100644
--- a/chrome/browser/ui/views/hung_renderer_view.cc
+++ b/chrome/browser/ui/views/hung_renderer_view.cc
@@ -246,7 +246,11 @@ void HungRendererDialogView::ShowForTabContents(TabContents* contents) {
volatile TabContents* this_contents = contents_;
gfx::Rect bounds = GetDisplayBounds(contents);
- window()->SetWindowBounds(bounds, frame_hwnd);
+ views::Widget* insert_after =
+ views::Widget::GetWidgetForNativeView(frame_hwnd);
+ window()->SetBoundsConstrained(bounds, insert_after);
+ if (insert_after)
+ window()->MoveAboveWidget(insert_after);
// We only do this if the window isn't active (i.e. hasn't been shown yet,
// or is currently shown but deactivated for another TabContents). This is