Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/common/automation_constants.h

Issue 9288051: Implement the webdriver window sizing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/automation_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/automation_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698