OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ | |
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ | |
7 #pragma once | |
8 | |
9 namespace automation { | |
10 // Amount of time to wait before querying the browser. | |
11 static const int kSleepTime = 250; | |
12 } | |
13 | |
14 // Used by AutomationProxy, declared here so that other headers don't need | |
15 // to include automation_proxy.h. | |
16 enum AutomationLaunchResult { | |
17 AUTOMATION_LAUNCH_RESULT_INVALID = -1, | |
18 AUTOMATION_SUCCESS, | |
19 AUTOMATION_TIMEOUT, | |
20 AUTOMATION_VERSION_MISMATCH, | |
21 AUTOMATION_CREATE_TAB_FAILED, | |
22 AUTOMATION_SERVER_CRASHED, | |
23 }; | |
24 | |
25 enum AutomationMsg_NavigationResponseValues { | |
26 AUTOMATION_MSG_NAVIGATION_ERROR = 0, | |
27 AUTOMATION_MSG_NAVIGATION_SUCCESS, | |
28 AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED, | |
29 }; | |
30 | |
31 enum AutomationMsg_ExtensionResponseValues { | |
32 AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED = 0, | |
33 AUTOMATION_MSG_EXTENSION_INSTALL_FAILED | |
34 }; | |
35 | |
36 // Used in the AutomationMsg_GetExtensionProperty to identify which extension | |
37 // property should be retrieved, instead of having separate messages for each | |
38 // property. | |
39 enum AutomationMsg_ExtensionProperty { | |
40 AUTOMATION_MSG_EXTENSION_ID = 0, | |
41 AUTOMATION_MSG_EXTENSION_NAME, | |
42 AUTOMATION_MSG_EXTENSION_VERSION, | |
43 AUTOMATION_MSG_EXTENSION_BROWSER_ACTION_INDEX, | |
44 }; | |
45 | |
46 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ | |
OLD | NEW |