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

Side by Side Diff: chrome/browser/automation/ui_controls.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/automation/ui_controls.h" 5 #include "chrome/browser/automation/ui_controls.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } 329 }
330 330
331 bool SendMouseClick(MouseButton type) { 331 bool SendMouseClick(MouseButton type) {
332 return SendMouseEventsImpl(type, UP | DOWN, NULL); 332 return SendMouseEventsImpl(type, UP | DOWN, NULL);
333 } 333 }
334 334
335 void MoveMouseToCenterAndPress( 335 void MoveMouseToCenterAndPress(
336 ChromeViews::View* view, MouseButton button, int state, Task* task) { 336 ChromeViews::View* view, MouseButton button, int state, Task* task) {
337 DCHECK(view); 337 DCHECK(view);
338 DCHECK(view->GetViewContainer()); 338 DCHECK(view->GetViewContainer());
339 CPoint view_center(view->width() / 2, view->height() / 2); 339 gfx::Point view_center(view->width() / 2, view->height() / 2);
340 ChromeViews::View::ConvertPointToScreen(view, &view_center); 340 ChromeViews::View::ConvertPointToScreen(view, &view_center);
341 SendMouseMove(view_center.x, view_center.y); 341 SendMouseMove(view_center.x(), view_center.y());
342 SendMouseEventsNotifyWhenDone(button, state, task); 342 SendMouseEventsNotifyWhenDone(button, state, task);
343 } 343 }
344 344
345 } // ui_controls 345 } // ui_controls
346 346
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/find_in_page_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698