summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-29 23:08:30 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-29 23:08:30 +0000
commit1b5a48c29bca7371ed64c616d7d35a796d6a3341 (patch)
tree5492d89e4ea0d6389a13186c90f79a4a8f712323 /views
parent83ffe9e621ae92d9a1bd32fd363f8dc5728010b0 (diff)
downloadchromium_src-1b5a48c29bca7371ed64c616d7d35a796d6a3341.zip
chromium_src-1b5a48c29bca7371ed64c616d7d35a796d6a3341.tar.gz
chromium_src-1b5a48c29bca7371ed64c616d7d35a796d6a3341.tar.bz2
Implement UI automation on the Mac.
Code is untested. From gChat: me: do you have a good test I can use to make sure mac impl of ui_controls for sending events works OK? Or would you prefer I send you CLs to play with and we iterate by hand? Joe: I would like the CL to play with to see if I can get it to work with the code I wrote Warning to Joe: mouse moved events currently use the Mac coordinate frame (0,0 is bottom-left not top-left). That's easy to switch; I'd like to do whatever is easiest to get WebDriver working. BUG=26102 Review URL: http://codereview.chromium.org/1701006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46005 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/event.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/event.h b/views/event.h
index 8ee9413..6f96a71 100644
--- a/views/event.h
+++ b/views/event.h
@@ -46,13 +46,18 @@ class Event {
ET_MOUSEWHEEL,
ET_DROP_TARGET_EVENT };
- // Event flags currently supported
+ // Event flags currently supported. Although this is a "views"
+ // file, this header is used on non-views platforms (e.g. OSX). For
+ // example, these EventFlags are used by the automation provider for
+ // all platforms.
enum EventFlags { EF_SHIFT_DOWN = 1 << 0,
EF_CONTROL_DOWN = 1 << 1,
EF_ALT_DOWN = 1 << 2,
EF_LEFT_BUTTON_DOWN = 1 << 3,
EF_MIDDLE_BUTTON_DOWN = 1 << 4,
- EF_RIGHT_BUTTON_DOWN = 1 << 5 };
+ EF_RIGHT_BUTTON_DOWN = 1 << 5,
+ EF_COMMAND_DOWN = 1 << 6, // Only useful on OSX
+ };
// Return the event type
EventType GetType() const {