| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 int end_y) WARN_UNUSED_RESULT; | 223 int end_y) WARN_UNUSED_RESULT; |
| 224 | 224 |
| 225 // Requests to send the WebKit event for the given |WebKeyEvent| in a | 225 // Requests to send the WebKit event for the given |WebKeyEvent| in a |
| 226 // specified tab. Returns true on success. | 226 // specified tab. Returns true on success. |
| 227 bool SendWebKeyEventJSONRequest( | 227 bool SendWebKeyEventJSONRequest( |
| 228 AutomationMessageSender* sender, | 228 AutomationMessageSender* sender, |
| 229 int browser_index, | 229 int browser_index, |
| 230 int tab_index, | 230 int tab_index, |
| 231 const WebKeyEvent& key_event) WARN_UNUSED_RESULT; | 231 const WebKeyEvent& key_event) WARN_UNUSED_RESULT; |
| 232 | 232 |
| 233 // Requests to send the key event for the given keycode+modifiers to a |
| 234 // browser window containing the specified tab. Returns true on success. |
| 235 bool SendNativeKeyEventJSONRequest( |
| 236 AutomationMessageSender* sender, |
| 237 int browser_index, |
| 238 int tab_index, |
| 239 ui::KeyboardCode key_code, |
| 240 int modifiers) WARN_UNUSED_RESULT; |
| 241 |
| 233 // Requests to wait for all tabs to stop loading. Returns true on success. | 242 // Requests to wait for all tabs to stop loading. Returns true on success. |
| 234 bool SendWaitForAllTabsToStopLoadingJSONRequest( | 243 bool SendWaitForAllTabsToStopLoadingJSONRequest( |
| 235 AutomationMessageSender* sender) WARN_UNUSED_RESULT; | 244 AutomationMessageSender* sender) WARN_UNUSED_RESULT; |
| 236 | 245 |
| 237 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ | 246 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |
| OLD | NEW |