| 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 "base/file_path.h" |
| 14 #include "chrome/common/automation_constants.h" | 14 #include "chrome/common/automation_constants.h" |
| 15 #include "ui/base/keycodes/keyboard_codes.h" | 15 #include "ui/base/keycodes/keyboard_codes.h" |
| 16 | 16 |
| 17 class AutomationMessageSender; | 17 class AutomationMessageSender; |
| 18 class FilePath; | 18 class FilePath; |
| 19 class GURL; | 19 class GURL; |
| 20 |
| 21 namespace base { |
| 20 class DictionaryValue; | 22 class DictionaryValue; |
| 21 class ListValue; | 23 class ListValue; |
| 22 class Value; | 24 class Value; |
| 25 } |
| 26 |
| 27 using base::DictionaryValue; |
| 28 using base::ListValue; |
| 29 using base::Value; |
| 23 | 30 |
| 24 struct WebKeyEvent { | 31 struct WebKeyEvent { |
| 25 WebKeyEvent(automation::KeyEventTypes type, | 32 WebKeyEvent(automation::KeyEventTypes type, |
| 26 ui::KeyboardCode key_code, | 33 ui::KeyboardCode key_code, |
| 27 const std::string& unmodified_text, | 34 const std::string& unmodified_text, |
| 28 const std::string& modified_text, | 35 const std::string& modified_text, |
| 29 int modifiers); | 36 int modifiers); |
| 30 | 37 |
| 31 automation::KeyEventTypes type; | 38 automation::KeyEventTypes type; |
| 32 ui::KeyboardCode key_code; | 39 ui::KeyboardCode key_code; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 std::string* error_msg) WARN_UNUSED_RESULT; | 345 std::string* error_msg) WARN_UNUSED_RESULT; |
| 339 | 346 |
| 340 // Requests the version of ChromeDriver automation supported by the automation | 347 // Requests the version of ChromeDriver automation supported by the automation |
| 341 // server. Returns true on success. | 348 // server. Returns true on success. |
| 342 bool SendGetChromeDriverAutomationVersion( | 349 bool SendGetChromeDriverAutomationVersion( |
| 343 AutomationMessageSender* sender, | 350 AutomationMessageSender* sender, |
| 344 int* version, | 351 int* version, |
| 345 std::string* error_msg) WARN_UNUSED_RESULT; | 352 std::string* error_msg) WARN_UNUSED_RESULT; |
| 346 | 353 |
| 347 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 354 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
| OLD | NEW |