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

Unified Diff: chrome/browser/views/hung_renderer_view.cc

Issue 115309: Remove even more ATL dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/browser/views/frame/browser_frame.h ('k') | chrome/browser/views/infobars/infobars.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/hung_renderer_view.cc
===================================================================
--- chrome/browser/views/hung_renderer_view.cc (revision 16052)
+++ chrome/browser/views/hung_renderer_view.cc (working copy)
@@ -405,14 +405,14 @@
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());
}
« no previous file with comments | « chrome/browser/views/frame/browser_frame.h ('k') | chrome/browser/views/infobars/infobars.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698