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

Unified Diff: chrome/views/hwnd_view.cc

Issue 7317: Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/views/chrome_menu.cc ('k') | chrome/views/hwnd_view_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/hwnd_view.cc
===================================================================
--- chrome/views/hwnd_view.cc (revision 3347)
+++ chrome/views/hwnd_view.cc (working copy)
@@ -71,9 +71,7 @@
// of the ViewContainer that hosts our View hierarchy) they need to be
// positioned in the coordinate system of the ViewContainer, not the current
// view.
- CPoint top_left;
-
- top_left.x = top_left.y = 0;
+ gfx::Point top_left;
ConvertPointToViewContainer(this, &top_left);
gfx::Rect vis_bounds = GetVisibleBounds();
@@ -114,7 +112,7 @@
// In a fast resize, we move the window and clip it with SetWindowRgn.
CRect rect;
GetWindowRect(hwnd_, &rect);
- ::SetWindowPos(hwnd_, 0, top_left.x, top_left.y, rect.Width(),
+ ::SetWindowPos(hwnd_, 0, top_left.x(), top_left.y(), rect.Width(),
rect.Height(), swp_flags);
HRGN clip_region = CreateRectRgn(0, 0,
@@ -123,7 +121,7 @@
SetWindowRgn(hwnd_, clip_region, FALSE);
installed_clip_ = true;
} else {
- ::SetWindowPos(hwnd_, 0, top_left.x, top_left.y, bounds_.Width(),
+ ::SetWindowPos(hwnd_, 0, top_left.x(), top_left.y(), bounds_.Width(),
bounds_.Height(), swp_flags);
}
} else if (::IsWindowVisible(hwnd_)) {
« no previous file with comments | « chrome/views/chrome_menu.cc ('k') | chrome/views/hwnd_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698