| 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> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/file_path.h" |
| 13 #include "chrome/common/automation_constants.h" | 14 #include "chrome/common/automation_constants.h" |
| 14 #include "ui/base/keycodes/keyboard_codes.h" | 15 #include "ui/base/keycodes/keyboard_codes.h" |
| 15 | 16 |
| 16 class AutomationMessageSender; | 17 class AutomationMessageSender; |
| 17 class FilePath; | 18 class FilePath; |
| 18 class GURL; | 19 class GURL; |
| 19 class DictionaryValue; | 20 class DictionaryValue; |
| 20 class ListValue; | 21 class ListValue; |
| 21 class Value; | 22 class Value; |
| 22 | 23 |
| (...skipping 269 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 | 293 // Requests to send the key event for the given keycode+modifiers to a |
| 293 // browser window containing the specified tab. Returns true on success. | 294 // browser window containing the specified tab. Returns true on success. |
| 294 bool SendNativeKeyEventJSONRequest( | 295 bool SendNativeKeyEventJSONRequest( |
| 295 AutomationMessageSender* sender, | 296 AutomationMessageSender* sender, |
| 296 int browser_index, | 297 int browser_index, |
| 297 int tab_index, | 298 int tab_index, |
| 298 ui::KeyboardCode key_code, | 299 ui::KeyboardCode key_code, |
| 299 int modifiers, | 300 int modifiers, |
| 300 std::string* error_msg) WARN_UNUSED_RESULT; | 301 std::string* error_msg) WARN_UNUSED_RESULT; |
| 301 | 302 |
| 303 // Requests to drag and drop the file paths at the given coordinate in the |
| 304 // specified tab. Returns true on success. |
| 305 bool SendDragAndDropFilePathsJSONRequest( |
| 306 AutomationMessageSender* sender, |
| 307 int browser_index, |
| 308 int tab_index, |
| 309 int x, |
| 310 int y, |
| 311 const std::vector<FilePath::StringType>& paths, |
| 312 std::string* error_msg) WARN_UNUSED_RESULT; |
| 313 |
| 302 // Requests to get the active JavaScript modal dialog's message. Returns true | 314 // Requests to get the active JavaScript modal dialog's message. Returns true |
| 303 // on success. | 315 // on success. |
| 304 bool SendGetAppModalDialogMessageJSONRequest( | 316 bool SendGetAppModalDialogMessageJSONRequest( |
| 305 AutomationMessageSender* sender, | 317 AutomationMessageSender* sender, |
| 306 std::string* message, | 318 std::string* message, |
| 307 std::string* error_msg) WARN_UNUSED_RESULT; | 319 std::string* error_msg) WARN_UNUSED_RESULT; |
| 308 | 320 |
| 309 // Requests to accept or dismiss the active JavaScript modal dialog. | 321 // Requests to accept or dismiss the active JavaScript modal dialog. |
| 310 // Returns true on success. | 322 // Returns true on success. |
| 311 bool SendAcceptOrDismissAppModalDialogJSONRequest( | 323 bool SendAcceptOrDismissAppModalDialogJSONRequest( |
| (...skipping 14 matching lines...) Expand all Loading... |
| 326 std::string* error_msg) WARN_UNUSED_RESULT; | 338 std::string* error_msg) WARN_UNUSED_RESULT; |
| 327 | 339 |
| 328 // Requests the version of ChromeDriver automation supported by the automation | 340 // Requests the version of ChromeDriver automation supported by the automation |
| 329 // server. Returns true on success. | 341 // server. Returns true on success. |
| 330 bool SendGetChromeDriverAutomationVersion( | 342 bool SendGetChromeDriverAutomationVersion( |
| 331 AutomationMessageSender* sender, | 343 AutomationMessageSender* sender, |
| 332 int* version, | 344 int* version, |
| 333 std::string* error_msg) WARN_UNUSED_RESULT; | 345 std::string* error_msg) WARN_UNUSED_RESULT; |
| 334 | 346 |
| 335 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 347 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
| OLD | NEW |