| 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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 // Waits for the autocomplete edit to receive focus. | 1420 // Waits for the autocomplete edit to receive focus. |
| 1421 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForAutocompleteEditFocus, | 1421 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForAutocompleteEditFocus, |
| 1422 int /* autocomplete edit handle */, | 1422 int /* autocomplete edit handle */, |
| 1423 bool /* success */) | 1423 bool /* success */) |
| 1424 | 1424 |
| 1425 // Loads all blocked plug-ins on the page. | 1425 // Loads all blocked plug-ins on the page. |
| 1426 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_LoadBlockedPlugins, | 1426 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_LoadBlockedPlugins, |
| 1427 int /* tab handle */, | 1427 int /* tab handle */, |
| 1428 bool /* success */) | 1428 bool /* success */) |
| 1429 | 1429 |
| 1430 // TODO(phajdan.jr): Remove this message. |
| 1430 // Captures the entire page for the tab, including those portions not in | 1431 // Captures the entire page for the tab, including those portions not in |
| 1431 // view, and saves the image as a PNG in the given file location. | 1432 // view, and saves the image as a PNG in the given file location. |
| 1433 // This message is deprecated, use the JSON testing interface for |
| 1434 // similar functionality. |
| 1432 // Request: | 1435 // Request: |
| 1433 // -int: Tab handle | 1436 // -int: Tab handle |
| 1434 // -FilePath: Path to save the captured image to | 1437 // -FilePath: Path to save the captured image to |
| 1435 // Response: | 1438 // Response: |
| 1436 // -bool: Whether the method succeeded | 1439 // -bool: Whether the method succeeded |
| 1437 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CaptureEntirePageAsPNG, | 1440 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CaptureEntirePageAsPNG_Deprecated, |
| 1438 int, | 1441 int, |
| 1439 FilePath, | 1442 FilePath, |
| 1440 bool) | 1443 bool) |
| 1441 | 1444 |
| 1442 // Notify the JavaScript engine in the render to change its parameters | 1445 // Notify the JavaScript engine in the render to change its parameters |
| 1443 // while performing stress testing. | 1446 // while performing stress testing. |
| 1444 IPC_MESSAGE_CONTROL3(AutomationMsg_JavaScriptStressTestControl, | 1447 IPC_MESSAGE_CONTROL3(AutomationMsg_JavaScriptStressTestControl, |
| 1445 int /* tab handle */, | 1448 int /* tab handle */, |
| 1446 int /* command */, | 1449 int /* command */, |
| 1447 int /* type or run */) | 1450 int /* type or run */) |
| 1448 | 1451 |
| 1449 // This message posts a task to the PROCESS_LAUNCHER thread. Once processed | 1452 // This message posts a task to the PROCESS_LAUNCHER thread. Once processed |
| 1450 // the response is sent back. This is useful when you want to make sure all | 1453 // the response is sent back. This is useful when you want to make sure all |
| 1451 // changes to the number of processes have completed. | 1454 // changes to the number of processes have completed. |
| 1452 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_WaitForProcessLauncherThreadToGoIdle) | 1455 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_WaitForProcessLauncherThreadToGoIdle) |
| 1453 | 1456 |
| 1454 // Gets a handle of the browser that owns the given tab. | 1457 // Gets a handle of the browser that owns the given tab. |
| 1455 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetParentBrowserOfTab, | 1458 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetParentBrowserOfTab, |
| 1456 int /* tab handle */, | 1459 int /* tab handle */, |
| 1457 int /* browser handle */, | 1460 int /* browser handle */, |
| 1458 bool /* success */) | 1461 bool /* success */) |
| OLD | NEW |