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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // Requests to send the key event for the given keycode+modifiers to a | 292 // Requests to send the key event for the given keycode+modifiers to a |
293 // browser window containing the specified tab. Returns true on success. | 293 // browser window containing the specified tab. Returns true on success. |
294 bool SendNativeKeyEventJSONRequest( | 294 bool SendNativeKeyEventJSONRequest( |
295 AutomationMessageSender* sender, | 295 AutomationMessageSender* sender, |
296 int browser_index, | 296 int browser_index, |
297 int tab_index, | 297 int tab_index, |
298 ui::KeyboardCode key_code, | 298 ui::KeyboardCode key_code, |
299 int modifiers, | 299 int modifiers, |
300 std::string* error_msg) WARN_UNUSED_RESULT; | 300 std::string* error_msg) WARN_UNUSED_RESULT; |
301 | 301 |
| 302 // Requests to drag and drop the file paths at the given coordinate in the |
| 303 // specified tab. Returns true on success. |
| 304 bool SendDragAndDropFilePathsJSONRequest( |
| 305 AutomationMessageSender* sender, |
| 306 int browser_index, |
| 307 int tab_index, |
| 308 int x, |
| 309 int y, |
| 310 const std::vector<std::string>& paths, |
| 311 std::string* error_msg) WARN_UNUSED_RESULT; |
| 312 |
302 // Requests to get the active JavaScript modal dialog's message. Returns true | 313 // Requests to get the active JavaScript modal dialog's message. Returns true |
303 // on success. | 314 // on success. |
304 bool SendGetAppModalDialogMessageJSONRequest( | 315 bool SendGetAppModalDialogMessageJSONRequest( |
305 AutomationMessageSender* sender, | 316 AutomationMessageSender* sender, |
306 std::string* message, | 317 std::string* message, |
307 std::string* error_msg) WARN_UNUSED_RESULT; | 318 std::string* error_msg) WARN_UNUSED_RESULT; |
308 | 319 |
309 // Requests to accept or dismiss the active JavaScript modal dialog. | 320 // Requests to accept or dismiss the active JavaScript modal dialog. |
310 // Returns true on success. | 321 // Returns true on success. |
311 bool SendAcceptOrDismissAppModalDialogJSONRequest( | 322 bool SendAcceptOrDismissAppModalDialogJSONRequest( |
(...skipping 14 matching lines...) Expand all Loading... |
326 std::string* error_msg) WARN_UNUSED_RESULT; | 337 std::string* error_msg) WARN_UNUSED_RESULT; |
327 | 338 |
328 // Requests the version of ChromeDriver automation supported by the automation | 339 // Requests the version of ChromeDriver automation supported by the automation |
329 // server. Returns true on success. | 340 // server. Returns true on success. |
330 bool SendGetChromeDriverAutomationVersion( | 341 bool SendGetChromeDriverAutomationVersion( |
331 AutomationMessageSender* sender, | 342 AutomationMessageSender* sender, |
332 int* version, | 343 int* version, |
333 std::string* error_msg) WARN_UNUSED_RESULT; | 344 std::string* error_msg) WARN_UNUSED_RESULT; |
334 | 345 |
335 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 346 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
OLD | NEW |