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

Unified Diff: chrome/views/accessibility/view_accessibility.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/views/toolbar_star_toggle.cc ('k') | chrome/views/bitmap_scroll_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/accessibility/view_accessibility.cc
===================================================================
--- chrome/views/accessibility/view_accessibility.cc (revision 3348)
+++ chrome/views/accessibility/view_accessibility.cc (working copy)
@@ -474,10 +474,10 @@
*width = view_bounds.width();
*height = view_bounds.height();
- CPoint topleft = view_bounds.origin().ToPOINT();
+ gfx::Point topleft(view_bounds.origin());
ChromeViews::View::ConvertPointToScreen(parent, &topleft);
- *x_left = topleft.x;
- *y_top = topleft.y;
+ *x_left = topleft.x();
+ *y_top = topleft.y();
} else {
return E_FAIL;
}
@@ -492,10 +492,10 @@
return E_INVALIDARG;
}
- CPoint pt(x_left, y_top);
+ gfx::Point pt(x_left, y_top);
ChromeViews::View::ConvertPointToView(NULL, view_, &pt);
- if (!view_->HitTest(pt)) {
+ if (!view_->HitTest(pt.ToPOINT())) {
// If containing parent is not hit, return with failure.
child->vt = VT_EMPTY;
return S_FALSE;
@@ -508,7 +508,7 @@
// Search for hit within any of the children.
child_view = view_->GetChildViewAt(child_id);
ChromeViews::View::ConvertPointToView(view_, child_view, &pt);
- if (child_view->HitTest(pt)) {
+ if (child_view->HitTest(pt.ToPOINT())) {
// Store child_id (adjusted with +1 to convert to MSAA indexing).
child->lVal = child_id + 1;
child_hit = true;
« no previous file with comments | « chrome/browser/views/toolbar_star_toggle.cc ('k') | chrome/views/bitmap_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698