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

Unified Diff: chrome/browser/find_in_page_controller.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/browser/automation/ui_controls.cc ('k') | chrome/browser/history_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/find_in_page_controller.cc
===================================================================
--- chrome/browser/find_in_page_controller.cc (revision 3348)
+++ chrome/browser/find_in_page_controller.cc (working copy)
@@ -491,9 +491,9 @@
// toolbar is the child of another view that isn't the top level view.
// This is required to ensure correct positioning relative to the top,left
// of the window.
- CPoint topleft(0, 0);
+ gfx::Point topleft;
ChromeViews::View::ConvertPointToViewContainer(toolbar, &topleft);
- toolbar_bounds.Offset(topleft.x, topleft.y);
+ toolbar_bounds.Offset(topleft.x(), topleft.y());
}
// If the bookmarks bar is available, we need to update our
« no previous file with comments | « chrome/browser/automation/ui_controls.cc ('k') | chrome/browser/history_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698