| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional | 7 // This header is meant to be included in multiple passes, hence no traditional |
| 8 // header guard. | 8 // header guard. |
| 9 // See ipc_message_macros.h for explanation of the macros and passes. | 9 // See ipc_message_macros.h for explanation of the macros and passes. |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // This message requests the handle (int64 app-unique identifier) of the | 126 // This message requests the handle (int64 app-unique identifier) of the |
| 127 // window with the given (zero-based) index. On error, the returned handle | 127 // window with the given (zero-based) index. On error, the returned handle |
| 128 // value is 0. | 128 // value is 0. |
| 129 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BrowserWindow, int, int) | 129 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BrowserWindow, int, int) |
| 130 | 130 |
| 131 // This message requests the number of tabs in the window with the given | 131 // This message requests the number of tabs in the window with the given |
| 132 // handle. The return value contains the number of tabs, or -1 if the | 132 // handle. The return value contains the number of tabs, or -1 if the |
| 133 // request failed. | 133 // request failed. |
| 134 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabCount, int, int) | 134 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabCount, int, int) |
| 135 | 135 |
| 136 // This message requests the type of the window with the given handle. The |
| 137 // return value contains the type (Browser::Type), or -1 if the request |
| 138 // failed. |
| 139 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_Type, int, int) |
| 140 |
| 136 // This message requests the handle of the tab with the given (zero-based) | 141 // This message requests the handle of the tab with the given (zero-based) |
| 137 // index in the given app window. First parameter specifies the given window | 142 // index in the given app window. First parameter specifies the given window |
| 138 // handle, second specifies the given tab_index. On error, the returned handle | 143 // handle, second specifies the given tab_index. On error, the returned handle |
| 139 // value is 0. | 144 // value is 0. |
| 140 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_Tab, int, int, int) | 145 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_Tab, int, int, int) |
| 141 | 146 |
| 142 // This message requests the the title of the tab with the given handle. | 147 // This message requests the the title of the tab with the given handle. |
| 143 // The return value contains the size of the title string. On error, this | 148 // The return value contains the size of the title string. On error, this |
| 144 // value should be -1 and empty string. Note that the title can be empty in | 149 // value should be -1 and empty string. Note that the title can be empty in |
| 145 // which case the size would be 0. | 150 // which case the size would be 0. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowActive, | 362 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowActive, |
| 358 int /* view_handle */, | 363 int /* view_handle */, |
| 359 bool /* success */, | 364 bool /* success */, |
| 360 bool /* active */) | 365 bool /* active */) |
| 361 | 366 |
| 362 // Makes the specified window the active window. | 367 // Makes the specified window the active window. |
| 363 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_ActivateWindow, | 368 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_ActivateWindow, |
| 364 int /* view_handle */) | 369 int /* view_handle */) |
| 365 | 370 |
| 366 // Opens a new browser window. | 371 // Opens a new browser window. |
| 367 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_OpenNewBrowserWindow, | 372 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_OpenNewBrowserWindow, |
| 368 bool /* show */ ) | 373 int /* Type (Browser::Type) */, |
| 374 bool /* show */ ) |
| 369 | 375 |
| 370 // This message requests the handle (int64 app-unique identifier) of the | 376 // This message requests the handle (int64 app-unique identifier) of the |
| 371 // current active top window. On error, the returned handle value is 0. | 377 // current active top window. On error, the returned handle value is 0. |
| 372 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_ActiveWindow, int) | 378 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_ActiveWindow, int) |
| 373 | 379 |
| 374 // This message requests the browser associated with the specified window | 380 // This message requests the browser associated with the specified window |
| 375 // handle. | 381 // handle. |
| 376 // The return value contains a success flag and the handle of the browser. | 382 // The return value contains a success flag and the handle of the browser. |
| 377 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_BrowserForWindow, | 383 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_BrowserForWindow, |
| 378 int /* window handle */, | 384 int /* window handle */, |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 AutomationMsg_ExtensionResponseValues) | 1144 AutomationMsg_ExtensionResponseValues) |
| 1139 | 1145 |
| 1140 // Silently load the extension in the given directory. This expects an | 1146 // Silently load the extension in the given directory. This expects an |
| 1141 // extension expanded into the directory, not a crx file. | 1147 // extension expanded into the directory, not a crx file. |
| 1142 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadExpandedExtension, | 1148 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadExpandedExtension, |
| 1143 FilePath /* root directory of extension */, | 1149 FilePath /* root directory of extension */, |
| 1144 AutomationMsg_ExtensionResponseValues) | 1150 AutomationMsg_ExtensionResponseValues) |
| 1145 | 1151 |
| 1146 | 1152 |
| 1147 IPC_END_MESSAGES(Automation) | 1153 IPC_END_MESSAGES(Automation) |
| OLD | NEW |