| 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 enum AutomationMsg_ExtensionResponseValues { | 28 enum AutomationMsg_ExtensionResponseValues { |
| 29 AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED = 0, | 29 AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED = 0, |
| 30 AUTOMATION_MSG_EXTENSION_INSTALL_FAILED, | 30 AUTOMATION_MSG_EXTENSION_INSTALL_FAILED |
| 31 AUTOMATION_MSG_EXTENSION_ALREADY_INSTALLED, | |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 // Used in the AutomationMsg_GetExtensionProperty to identify which extension | 33 // Used in the AutomationMsg_GetExtensionProperty to identify which extension |
| 35 // property should be retrieved, instead of having separate messages for each | 34 // property should be retrieved, instead of having separate messages for each |
| 36 // property. | 35 // property. |
| 37 enum AutomationMsg_ExtensionProperty { | 36 enum AutomationMsg_ExtensionProperty { |
| 38 AUTOMATION_MSG_EXTENSION_ID = 0, | 37 AUTOMATION_MSG_EXTENSION_ID = 0, |
| 39 AUTOMATION_MSG_EXTENSION_NAME, | 38 AUTOMATION_MSG_EXTENSION_NAME, |
| 40 AUTOMATION_MSG_EXTENSION_VERSION, | 39 AUTOMATION_MSG_EXTENSION_VERSION, |
| 41 AUTOMATION_MSG_EXTENSION_BROWSER_ACTION_INDEX, | 40 AUTOMATION_MSG_EXTENSION_BROWSER_ACTION_INDEX, |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ | 43 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ |
| OLD | NEW |