| 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 int /* tab_handle */, | 757 int /* tab_handle */, |
| 758 int /* info bar count */) | 758 int /* info bar count */) |
| 759 | 759 |
| 760 // This message triggers the action associated with the "accept" button in | 760 // This message triggers the action associated with the "accept" button in |
| 761 // the info-bar at the specified index. If |wait for navigation| is true, it | 761 // the info-bar at the specified index. If |wait for navigation| is true, it |
| 762 // won't return until a navigation has occurred. | 762 // won't return until a navigation has occurred. |
| 763 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_ClickInfoBarAccept, | 763 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_ClickInfoBarAccept, |
| 764 int /* tab_handle */, | 764 int /* tab_handle */, |
| 765 int /* info bar index */, | 765 int /* info bar index */, |
| 766 bool /* wait for navigation */, | 766 bool /* wait for navigation */, |
| 767 | |
| 768 /* navigation result */ | 767 /* navigation result */ |
| 769 AutomationMsg_NavigationResponseValues) | 768 AutomationMsg_NavigationResponseValues) |
| 770 | 769 |
| 771 // This message retrieves the last time a navigation occurred in the specified | 770 // This message retrieves the last time a navigation occurred in the specified |
| 772 // tab. The value is intended to be used with WaitForNavigation. | 771 // tab. The value is intended to be used with WaitForNavigation. |
| 773 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetLastNavigationTime, | 772 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetLastNavigationTime, |
| 774 int /* tab_handle */, | 773 int /* tab_handle */, |
| 775 int64 /* last navigation time */) | 774 int64 /* last navigation time */) |
| 776 | 775 |
| 777 // This messages is used to block until a new navigation occurs (if there is | 776 // This messages is used to block until a new navigation occurs (if there is |
| 778 // none more recent then the time specified). | 777 // none more recent then the time specified). |
| 779 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForNavigation, | 778 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForNavigation, |
| 780 int /* tab_handle */, | 779 int /* tab_handle */, |
| 781 int64 /* last navigation time */, | 780 int64 /* last navigation time */, |
| 782 | |
| 783 /* navigation result */ | 781 /* navigation result */ |
| 784 AutomationMsg_NavigationResponseValues) | 782 AutomationMsg_NavigationResponseValues) |
| 785 | 783 |
| 786 // This messages sets an int-value preference. | 784 // This messages sets an int-value preference. |
| 787 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetIntPreference, | 785 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetIntPreference, |
| 788 int /* browser handle */, | 786 int /* browser handle */, |
| 789 std::string /* pref name */, | 787 std::string /* pref name */, |
| 790 int /* value */, | 788 int /* value */, |
| 791 bool /* success */) | 789 bool /* success */) |
| 792 | 790 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 // The return value contains a status code which is nonnegative on success. | 1018 // The return value contains a status code which is nonnegative on success. |
| 1021 // see AutomationMsg_NavigationResponseValues for the navigation response. | 1019 // see AutomationMsg_NavigationResponseValues for the navigation response. |
| 1022 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_NavigateExternalTabAtIndex, | 1020 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_NavigateExternalTabAtIndex, |
| 1023 int, | 1021 int, |
| 1024 int, | 1022 int, |
| 1025 AutomationMsg_NavigationResponseValues) | 1023 AutomationMsg_NavigationResponseValues) |
| 1026 | 1024 |
| 1027 // This message requests the provider to wait until the window count | 1025 // This message requests the provider to wait until the window count |
| 1028 // reached the specified value. | 1026 // reached the specified value. |
| 1029 // Request: | 1027 // Request: |
| 1030 // - int: target browser window count | 1028 // - int: target browser window count |
| 1031 // Response: | 1029 // Response: |
| 1032 // - bool: whether the operation was successful. | 1030 // - bool: whether the operation was successful. |
| 1033 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, | 1031 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, |
| 1034 int, | 1032 int, |
| 1035 bool) | 1033 bool) |
| 1036 | 1034 |
| 1037 // This message requests the provider to wait until an application modal | 1035 // This message requests the provider to wait until an application modal |
| 1038 // dialog is shown. | 1036 // dialog is shown. |
| 1039 // Response: | 1037 // Response: |
| 1040 // - bool: whether the operation was successful | 1038 // - bool: whether the operation was successful |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1438 int, | 1436 int, |
| 1439 FilePath, | 1437 FilePath, |
| 1440 bool) | 1438 bool) |
| 1441 | 1439 |
| 1442 // Notify the JavaScript engine in the render to change its parameters | 1440 // Notify the JavaScript engine in the render to change its parameters |
| 1443 // while performing stress testing. | 1441 // while performing stress testing. |
| 1444 IPC_MESSAGE_ROUTED3(AutomationMsg_JavaScriptStressTestControl, | 1442 IPC_MESSAGE_ROUTED3(AutomationMsg_JavaScriptStressTestControl, |
| 1445 int /* tab handle */, | 1443 int /* tab handle */, |
| 1446 int /* command */, | 1444 int /* command */, |
| 1447 int /* type or run */) | 1445 int /* type or run */) |
| OLD | NEW |