| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_AUTOMATION_CONSTANTS_H__ | 5 #ifndef CHROME_COMMON_AUTOMATION_CONSTANTS_H__ |
| 6 #define CHROME_COMMON_AUTOMATION_CONSTANTS_H__ | 6 #define CHROME_COMMON_AUTOMATION_CONSTANTS_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // to detect certain types of errors it may be interested in handling. | 78 // to detect certain types of errors it may be interested in handling. |
| 79 // The error code values must stay consistent across compatible versions. | 79 // The error code values must stay consistent across compatible versions. |
| 80 enum ErrorCode { | 80 enum ErrorCode { |
| 81 // An unknown error occurred. | 81 // An unknown error occurred. |
| 82 kUnknownError = 0, | 82 kUnknownError = 0, |
| 83 // Trying to operate on a JavaScript modal dialog when none is open. | 83 // Trying to operate on a JavaScript modal dialog when none is open. |
| 84 kNoJavaScriptModalDialogOpen = 1, | 84 kNoJavaScriptModalDialogOpen = 1, |
| 85 // An open modal dialog blocked the operation. The operation may have | 85 // An open modal dialog blocked the operation. The operation may have |
| 86 // partially completed. | 86 // partially completed. |
| 87 kBlockedByModalDialog = 2, | 87 kBlockedByModalDialog = 2, |
| 88 // An ID was supplied that is invalid or does not refer to an existing object. |
| 89 kInvalidId = 3, |
| 88 }; | 90 }; |
| 89 | 91 |
| 90 // Represents an automation error. Each error has a code and an error message. | 92 // Represents an automation error. Each error has a code and an error message. |
| 91 class Error { | 93 class Error { |
| 92 public: | 94 public: |
| 93 // Creates an invalid error. | 95 // Creates an invalid error. |
| 94 Error(); | 96 Error(); |
| 95 | 97 |
| 96 // Creates an error for the given code. A default message for the given code | 98 // Creates an error for the given code. A default message for the given code |
| 97 // will be used as the error message. | 99 // will be used as the error message. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 SMALL_FONT = 12, | 154 SMALL_FONT = 12, |
| 153 MEDIUM_FONT = 16, | 155 MEDIUM_FONT = 16, |
| 154 LARGE_FONT = 24, | 156 LARGE_FONT = 24, |
| 155 LARGEST_FONT = 36 | 157 LARGEST_FONT = 36 |
| 156 }; | 158 }; |
| 157 | 159 |
| 158 enum FindInPageDirection { BACK = 0, FWD = 1 }; | 160 enum FindInPageDirection { BACK = 0, FWD = 1 }; |
| 159 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 }; | 161 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 }; |
| 160 | 162 |
| 161 #endif // CHROME_COMMON_AUTOMATION_CONSTANTS_H__ | 163 #endif // CHROME_COMMON_AUTOMATION_CONSTANTS_H__ |
| OLD | NEW |