diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 19:56:28 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-12 19:56:28 +0000 |
commit | 9a08bcfbb43283785d18f1a7e148a38659549e03 (patch) | |
tree | 5cdf40890a47f888ab5d01c8e2cd2611627cbd3a /chrome/test/automation | |
parent | e626d7f115a1319421d1e2d5da85b6f0bd66877f (diff) | |
download | chromium_src-9a08bcfbb43283785d18f1a7e148a38659549e03.zip chromium_src-9a08bcfbb43283785d18f1a7e148a38659549e03.tar.gz chromium_src-9a08bcfbb43283785d18f1a7e148a38659549e03.tar.bz2 |
Checkpoint for event automation porting.
Partially based on patch by Dan Kegel.
Review URL: http://codereview.chromium.org/164371
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r-- | chrome/test/automation/automation_constants.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/chrome/test/automation/automation_constants.h b/chrome/test/automation/automation_constants.h index b08836d..1972ea8 100644 --- a/chrome/test/automation/automation_constants.h +++ b/chrome/test/automation/automation_constants.h @@ -1,9 +1,9 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H__ -#define CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H__ +#ifndef CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ +#define CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ namespace automation { // Amount of time to wait before querying the browser. @@ -25,4 +25,20 @@ enum AutomationMsg_NavigationResponseValues { AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED, }; -#endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H__ +#if !defined(OS_WIN) + +// WebKit defines a larger set of these in +// WebKit/WebCore/platform/KeyboardCodes.h but I don't think we want to include +// that from here, and besides we only care about a subset of those. +const int VK_TAB = 0x09; +const int VK_RETURN = 0x0D; +const int VK_ESCAPE = 0x1B; +const int VK_SPACE = 0x20; +const int VK_PRIOR = 0x21; +const int VK_NEXT = 0x22; +const int VK_UP = 0x26; +const int VK_DOWN = 0x28; + +#endif // !defined(OS_WIN) + +#endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ |