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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup.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 | « base/gfx/point.h ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_popup.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_popup.cc (revision 3348)
+++ chrome/browser/autocomplete/autocomplete_popup.cc (working copy)
@@ -172,9 +172,9 @@
CRect rc = edit_view_->parent_view()->bounds().ToRECT();
// Subtract the top left corner to make the coordinates relative to the
// location bar view itself, and convert to screen coordinates.
- CPoint top_left(-rc.TopLeft());
+ gfx::Point top_left(-rc.TopLeft());
ChromeViews::View::ConvertPointToScreen(edit_view_->parent_view(), &top_left);
- rc.OffsetRect(top_left);
+ rc.OffsetRect(top_left.ToPOINT());
// Expand by one pixel on each side since that's the amount the location bar
// view is inset from the divider line that edges the adjacent buttons.
// Deflate the top and bottom by the height of the extra graphics around the
« no previous file with comments | « base/gfx/point.h ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698