diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 17:31:10 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 17:31:10 +0000 |
commit | 65f73a3a996bdbaa167e38704df092aa39b53d3a (patch) | |
tree | f35068757a31bd1efe03996c8a58635dc7edb588 /chrome/browser/views/hung_renderer_view.cc | |
parent | 3c39333a11a67ffe72a8989be898dca8421d573b (diff) | |
download | chromium_src-65f73a3a996bdbaa167e38704df092aa39b53d3a.zip chromium_src-65f73a3a996bdbaa167e38704df092aa39b53d3a.tar.gz chromium_src-65f73a3a996bdbaa167e38704df092aa39b53d3a.tar.bz2 |
Remove even more ATL dependencies.
Review URL: http://codereview.chromium.org/115309
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/hung_renderer_view.cc')
-rw-r--r-- | chrome/browser/views/hung_renderer_view.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/views/hung_renderer_view.cc b/chrome/browser/views/hung_renderer_view.cc index 20c7e06..4c1397a 100644 --- a/chrome/browser/views/hung_renderer_view.cc +++ b/chrome/browser/views/hung_renderer_view.cc @@ -405,14 +405,14 @@ void HungRendererDialogView::CreateKillButtonView() { gfx::Rect HungRendererDialogView::GetDisplayBounds( TabContents* contents) { HWND contents_hwnd = contents->GetNativeView(); - CRect contents_bounds; - GetWindowRect(contents_hwnd, &contents_bounds); - + RECT contents_bounds_rect; + GetWindowRect(contents_hwnd, &contents_bounds_rect); + gfx::Rect contents_bounds(contents_bounds_rect); gfx::Rect window_bounds = window()->GetBounds(); - int window_x = contents_bounds.left + - (contents_bounds.Width() - window_bounds.width()) / 2; - int window_y = contents_bounds.top + kOverlayContentsOffsetY; + int window_x = contents_bounds.x() + + (contents_bounds.width() - window_bounds.width()) / 2; + int window_y = contents_bounds.y() + kOverlayContentsOffsetY; return gfx::Rect(window_x, window_y, window_bounds.width(), window_bounds.height()); } |