Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.
http://crbug.com/2186
Review URL: http://codereview.chromium.org/7317
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3365 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 1456adc..c7bb3d50 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -1148,13 +1148,13 @@
ChromeViews::View* view = root_view->GetViewByID(view_id);
if (view) {
succeeded = true;
- CPoint point(0, 0);
+ gfx::Point point;
if (screen_coordinates)
ChromeViews::View::ConvertPointToScreen(view, &point);
else
ChromeViews::View::ConvertPointToView(view, root_view, &point);
view->GetLocalBounds(&bounds, false);
- bounds.MoveToXY(point.x, point.y);
+ bounds.MoveToXY(point.x(), point.y());
}
}
}
@@ -1182,9 +1182,9 @@
// the drag code moved away from using mouse event locations was because
// our conversion to screen location doesn't work well with multiple
// monitors, so this only works reliably in a single monitor setup.
- CPoint screen_location = CPoint(point_.x, point_.y);
+ gfx::Point screen_location(point_.x, point_.y);
view_->ConvertPointToScreen(view_, &screen_location);
- ::SetCursorPos(screen_location.x, screen_location.y);
+ ::SetCursorPos(screen_location.x(), screen_location.y());
switch (type_) {
case ChromeViews::Event::ET_MOUSE_PRESSED:
view_->OnMousePressed(event);