| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ |
| 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ |
| 7 | 7 |
| 8 namespace automation { | 8 namespace automation { |
| 9 // Amount of time to wait before querying the browser. | 9 // Amount of time to wait before querying the browser. |
| 10 static const int kSleepTime = 250; | 10 static const int kSleepTime = 250; |
| 11 } | 11 } |
| 12 | 12 |
| 13 // Used by AutomationProxy, declared here so that other headers don't need | 13 // Used by AutomationProxy, declared here so that other headers don't need |
| 14 // to include automation_proxy.h. | 14 // to include automation_proxy.h. |
| 15 enum AutomationLaunchResult { | 15 enum AutomationLaunchResult { |
| 16 AUTOMATION_SUCCESS, | 16 AUTOMATION_SUCCESS, |
| 17 AUTOMATION_TIMEOUT, | 17 AUTOMATION_TIMEOUT, |
| 18 AUTOMATION_VERSION_MISMATCH, | 18 AUTOMATION_VERSION_MISMATCH, |
| 19 AUTOMATION_CREATE_TAB_FAILED | 19 AUTOMATION_CREATE_TAB_FAILED |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 enum AutomationMsg_NavigationResponseValues { | 22 enum AutomationMsg_NavigationResponseValues { |
| 23 AUTOMATION_MSG_NAVIGATION_ERROR = 0, | 23 AUTOMATION_MSG_NAVIGATION_ERROR = 0, |
| 24 AUTOMATION_MSG_NAVIGATION_SUCCESS, | 24 AUTOMATION_MSG_NAVIGATION_SUCCESS, |
| 25 AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED, | 25 AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED, |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 #if !defined(OS_WIN) | |
| 29 | |
| 30 // WebKit defines a larger set of these in | |
| 31 // WebKit/WebCore/platform/KeyboardCodes.h but I don't think we want to include | |
| 32 // that from here, and besides we only care about a subset of those. | |
| 33 const int VK_TAB = 0x09; | |
| 34 const int VK_RETURN = 0x0D; | |
| 35 const int VK_ESCAPE = 0x1B; | |
| 36 const int VK_SPACE = 0x20; | |
| 37 const int VK_PRIOR = 0x21; | |
| 38 const int VK_NEXT = 0x22; | |
| 39 const int VK_UP = 0x26; | |
| 40 const int VK_DOWN = 0x28; | |
| 41 | |
| 42 #endif // !defined(OS_WIN) | |
| 43 | |
| 44 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ | 28 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ |
| OLD | NEW |