OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_JSON_REQUESTS_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Requests to send the key event for the given keycode+modifiers to a | 284 // Requests to send the key event for the given keycode+modifiers to a |
285 // browser window containing the specified tab. Returns true on success. | 285 // browser window containing the specified tab. Returns true on success. |
286 bool SendNativeKeyEventJSONRequest( | 286 bool SendNativeKeyEventJSONRequest( |
287 AutomationMessageSender* sender, | 287 AutomationMessageSender* sender, |
288 int browser_index, | 288 int browser_index, |
289 int tab_index, | 289 int tab_index, |
290 ui::KeyboardCode key_code, | 290 ui::KeyboardCode key_code, |
291 int modifiers, | 291 int modifiers, |
292 std::string* error_msg) WARN_UNUSED_RESULT; | 292 std::string* error_msg) WARN_UNUSED_RESULT; |
293 | 293 |
| 294 // Requests to drag and drop the file paths at the given coordinate in the |
| 295 // specified tab. Returns true on success. |
| 296 bool SendDragAndDropFilePathsJSONRequest( |
| 297 AutomationMessageSender* sender, |
| 298 int browser_index, |
| 299 int tab_index, |
| 300 int x, |
| 301 int y, |
| 302 const std::vector<std::string>& paths, |
| 303 std::string* error_msg) WARN_UNUSED_RESULT; |
| 304 |
294 // Requests to get the active JavaScript modal dialog's message. Returns true | 305 // Requests to get the active JavaScript modal dialog's message. Returns true |
295 // on success. | 306 // on success. |
296 bool SendGetAppModalDialogMessageJSONRequest( | 307 bool SendGetAppModalDialogMessageJSONRequest( |
297 AutomationMessageSender* sender, | 308 AutomationMessageSender* sender, |
298 std::string* message, | 309 std::string* message, |
299 std::string* error_msg) WARN_UNUSED_RESULT; | 310 std::string* error_msg) WARN_UNUSED_RESULT; |
300 | 311 |
301 // Requests to accept or dismiss the active JavaScript modal dialog. | 312 // Requests to accept or dismiss the active JavaScript modal dialog. |
302 // Returns true on success. | 313 // Returns true on success. |
303 bool SendAcceptOrDismissAppModalDialogJSONRequest( | 314 bool SendAcceptOrDismissAppModalDialogJSONRequest( |
(...skipping 14 matching lines...) Expand all Loading... |
318 std::string* error_msg) WARN_UNUSED_RESULT; | 329 std::string* error_msg) WARN_UNUSED_RESULT; |
319 | 330 |
320 // Requests the version of ChromeDriver automation supported by the automation | 331 // Requests the version of ChromeDriver automation supported by the automation |
321 // server. Returns true on success. | 332 // server. Returns true on success. |
322 bool SendGetChromeDriverAutomationVersion( | 333 bool SendGetChromeDriverAutomationVersion( |
323 AutomationMessageSender* sender, | 334 AutomationMessageSender* sender, |
324 int* version, | 335 int* version, |
325 std::string* error_msg) WARN_UNUSED_RESULT; | 336 std::string* error_msg) WARN_UNUSED_RESULT; |
326 | 337 |
327 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 338 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
OLD | NEW |