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

Side by Side Diff: chrome/browser/automation/ui_controls_mac.mm

Issue 8585015: Implement ui_controls for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no mask for xsendevent Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <mach/mach_time.h> 8 #include <mach/mach_time.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // Converts the center position of the view into the coordinates accepted 374 // Converts the center position of the view into the coordinates accepted
375 // by SendMouseMoveNotifyWhenDone() method. 375 // by SendMouseMoveNotifyWhenDone() method.
376 NSRect bounds = [view bounds]; 376 NSRect bounds = [view bounds];
377 NSPoint center = NSMakePoint(NSMidX(bounds), NSMidY(bounds)); 377 NSPoint center = NSMakePoint(NSMidX(bounds), NSMidY(bounds));
378 center = [view convertPoint:center toView:nil]; 378 center = [view convertPoint:center toView:nil];
379 center = [window convertBaseToScreen:center]; 379 center = [window convertBaseToScreen:center];
380 center = NSMakePoint(center.x, [screen frame].size.height - center.y); 380 center = NSMakePoint(center.x, [screen frame].size.height - center.y);
381 381
382 SendMouseMoveNotifyWhenDone( 382 SendMouseMoveNotifyWhenDone(
383 center.x, center.y, 383 center.x, center.y,
384 base::Bind(&ui_controls::ClickTask, button, state, task)); 384 base::Bind(&ui_controls::internal::ClickTask, button, state, task));
385 } 385 }
386 386
387 } // ui_controls 387 } // ui_controls
OLDNEW
« no previous file with comments | « chrome/browser/automation/ui_controls_internal_win.cc ('k') | chrome/browser/automation/ui_controls_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698