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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 const WebViewLocator& locator, | 231 const WebViewLocator& locator, |
232 automation::Error* error) WARN_UNUSED_RESULT; | 232 automation::Error* error) WARN_UNUSED_RESULT; |
233 | 233 |
234 // Requests the specified view to reload. Waits for the load to complete. | 234 // Requests the specified view to reload. Waits for the load to complete. |
235 // Returns true on success. | 235 // Returns true on success. |
236 bool SendReloadJSONRequest( | 236 bool SendReloadJSONRequest( |
237 AutomationMessageSender* sender, | 237 AutomationMessageSender* sender, |
238 const WebViewLocator& locator, | 238 const WebViewLocator& locator, |
239 automation::Error* error) WARN_UNUSED_RESULT; | 239 automation::Error* error) WARN_UNUSED_RESULT; |
240 | 240 |
| 241 // Deprecated, no longer works with Chrome 29+. |
241 // Requests a snapshot of the entire page to be saved to the given path | 242 // Requests a snapshot of the entire page to be saved to the given path |
242 // in PNG format. | 243 // in PNG format. |
243 // Returns true on success. | 244 // Returns true on success. |
244 bool SendCaptureEntirePageJSONRequest( | 245 bool SendCaptureEntirePageJSONRequestDeprecated( |
245 AutomationMessageSender* sender, | 246 AutomationMessageSender* sender, |
246 const WebViewLocator& locator, | 247 const WebViewLocator& locator, |
247 const base::FilePath& path, | 248 const base::FilePath& path, |
248 automation::Error* error) WARN_UNUSED_RESULT; | 249 automation::Error* error) WARN_UNUSED_RESULT; |
249 | 250 |
250 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 251 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
| 252 // Deprecated, no longer works with Chrome 29+. |
251 // Requests a heap profile dump. | 253 // Requests a heap profile dump. |
252 // Returns true on success. | 254 // Returns true on success. |
253 bool SendHeapProfilerDumpJSONRequest( | 255 bool SendHeapProfilerDumpJSONRequestDeprecated( |
254 AutomationMessageSender* sender, | 256 AutomationMessageSender* sender, |
255 const WebViewLocator& locator, | 257 const WebViewLocator& locator, |
256 const std::string& reason, | 258 const std::string& reason, |
257 automation::Error* error) WARN_UNUSED_RESULT; | 259 automation::Error* error) WARN_UNUSED_RESULT; |
258 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 260 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
259 | 261 |
260 // Requests all the cookies for the given URL. On success returns true and | 262 // Requests all the cookies for the given URL. On success returns true and |
261 // caller takes ownership of |cookies|, which is a list of all the cookies in | 263 // caller takes ownership of |cookies|, which is a list of all the cookies in |
262 // dictionary format. | 264 // dictionary format. |
263 bool SendGetCookiesJSONRequest( | 265 bool SendGetCookiesJSONRequest( |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 390 |
389 // Requests to send the key event for the given keycode+modifiers to a | 391 // Requests to send the key event for the given keycode+modifiers to a |
390 // browser window containing the specified view. Returns true on success. | 392 // browser window containing the specified view. Returns true on success. |
391 bool SendNativeKeyEventJSONRequest( | 393 bool SendNativeKeyEventJSONRequest( |
392 AutomationMessageSender* sender, | 394 AutomationMessageSender* sender, |
393 const WebViewLocator& locator, | 395 const WebViewLocator& locator, |
394 ui::KeyboardCode key_code, | 396 ui::KeyboardCode key_code, |
395 int modifiers, | 397 int modifiers, |
396 automation::Error* error) WARN_UNUSED_RESULT; | 398 automation::Error* error) WARN_UNUSED_RESULT; |
397 | 399 |
| 400 // Deprecated, no longer works with Chrome 29+. |
398 // Requests to send the WebKit event for the given |WebMouseEvent| in a | 401 // Requests to send the WebKit event for the given |WebMouseEvent| in a |
399 // specified view. Returns true on success. | 402 // specified view. Returns true on success. |
400 bool SendWebMouseEventJSONRequest( | 403 bool SendWebMouseEventJSONRequestDeprecated( |
401 AutomationMessageSender* sender, | 404 AutomationMessageSender* sender, |
402 const WebViewLocator& locator, | 405 const WebViewLocator& locator, |
403 const WebMouseEvent& mouse_event, | 406 const WebMouseEvent& mouse_event, |
404 automation::Error* error) WARN_UNUSED_RESULT; | 407 automation::Error* error) WARN_UNUSED_RESULT; |
405 | 408 |
406 // Requests to drag and drop the file paths at the given coordinate in the | 409 // Requests to drag and drop the file paths at the given coordinate in the |
407 // specified view. Returns true on success. | 410 // specified view. Returns true on success. |
408 bool SendDragAndDropFilePathsJSONRequest( | 411 bool SendDragAndDropFilePathsJSONRequest( |
409 AutomationMessageSender* sender, | 412 AutomationMessageSender* sender, |
410 const WebViewLocator& locator, | 413 const WebViewLocator& locator, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 bool accept, | 446 bool accept, |
444 automation::Error* error) WARN_UNUSED_RESULT; | 447 automation::Error* error) WARN_UNUSED_RESULT; |
445 | 448 |
446 // Requests to accept the active JavaScript modal dialog with the given prompt | 449 // Requests to accept the active JavaScript modal dialog with the given prompt |
447 // text. Returns true on success. | 450 // text. Returns true on success. |
448 bool SendAcceptPromptAppModalDialogJSONRequest( | 451 bool SendAcceptPromptAppModalDialogJSONRequest( |
449 AutomationMessageSender* sender, | 452 AutomationMessageSender* sender, |
450 const std::string& prompt_text, | 453 const std::string& prompt_text, |
451 automation::Error* error) WARN_UNUSED_RESULT; | 454 automation::Error* error) WARN_UNUSED_RESULT; |
452 | 455 |
| 456 // Deprecated, no longer works with Chrome 29+. |
453 // Requests to wait for all views to stop loading. Returns true on success. | 457 // Requests to wait for all views to stop loading. Returns true on success. |
454 bool SendWaitForAllViewsToStopLoadingJSONRequest( | 458 bool SendWaitForAllViewsToStopLoadingJSONRequestDeprecated( |
455 AutomationMessageSender* sender, | 459 AutomationMessageSender* sender, |
456 automation::Error* error) WARN_UNUSED_RESULT; | 460 automation::Error* error) WARN_UNUSED_RESULT; |
457 | 461 |
458 // Requests the version of ChromeDriver automation supported by the automation | 462 // Requests the version of ChromeDriver automation supported by the automation |
459 // server. Returns true on success. | 463 // server. Returns true on success. |
460 bool SendGetChromeDriverAutomationVersion( | 464 bool SendGetChromeDriverAutomationVersion( |
461 AutomationMessageSender* sender, | 465 AutomationMessageSender* sender, |
462 int* version, | 466 int* version, |
463 automation::Error* error) WARN_UNUSED_RESULT; | 467 automation::Error* error) WARN_UNUSED_RESULT; |
464 | 468 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 base::Value* value, | 529 base::Value* value, |
526 automation::Error* error) WARN_UNUSED_RESULT; | 530 automation::Error* error) WARN_UNUSED_RESULT; |
527 | 531 |
528 // Requests to override the user's geolocation. Returns true on success. | 532 // Requests to override the user's geolocation. Returns true on success. |
529 bool SendOverrideGeolocationJSONRequest( | 533 bool SendOverrideGeolocationJSONRequest( |
530 AutomationMessageSender* sender, | 534 AutomationMessageSender* sender, |
531 const base::DictionaryValue* geolocation, | 535 const base::DictionaryValue* geolocation, |
532 automation::Error* error) WARN_UNUSED_RESULT; | 536 automation::Error* error) WARN_UNUSED_RESULT; |
533 | 537 |
534 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 538 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
OLD | NEW |