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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowActive, | 357 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowActive, |
358 int /* view_handle */, | 358 int /* view_handle */, |
359 bool /* success */, | 359 bool /* success */, |
360 bool /* active */) | 360 bool /* active */) |
361 | 361 |
362 // Makes the specified window the active window. | 362 // Makes the specified window the active window. |
363 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_ActivateWindow, | 363 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_ActivateWindow, |
364 int /* view_handle */) | 364 int /* view_handle */) |
365 | 365 |
366 // Opens a new browser window. | 366 // Opens a new browser window. |
| 367 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. |
| 368 // Doing this requires updating the reference build. |
367 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_OpenNewBrowserWindow, | 369 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_OpenNewBrowserWindow, |
368 bool /* show */ ) | 370 bool /* show */ ) |
369 | 371 |
370 // This message requests the handle (int64 app-unique identifier) of the | 372 // This message requests the handle (int64 app-unique identifier) of the |
371 // current active top window. On error, the returned handle value is 0. | 373 // current active top window. On error, the returned handle value is 0. |
372 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_ActiveWindow, int) | 374 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_ActiveWindow, int) |
373 | 375 |
374 // This message requests the browser associated with the specified window | 376 // This message requests the browser associated with the specified window |
375 // handle. | 377 // handle. |
376 // The return value contains a success flag and the handle of the browser. | 378 // The return value contains a success flag and the handle of the browser. |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_InstallExtension, | 1138 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_InstallExtension, |
1137 FilePath /* full path to crx file */, | 1139 FilePath /* full path to crx file */, |
1138 AutomationMsg_ExtensionResponseValues) | 1140 AutomationMsg_ExtensionResponseValues) |
1139 | 1141 |
1140 // Silently load the extension in the given directory. This expects an | 1142 // Silently load the extension in the given directory. This expects an |
1141 // extension expanded into the directory, not a crx file. | 1143 // extension expanded into the directory, not a crx file. |
1142 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadExpandedExtension, | 1144 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadExpandedExtension, |
1143 FilePath /* root directory of extension */, | 1145 FilePath /* root directory of extension */, |
1144 AutomationMsg_ExtensionResponseValues) | 1146 AutomationMsg_ExtensionResponseValues) |
1145 | 1147 |
| 1148 // This message requests the type of the window with the given handle. The |
| 1149 // return value contains the type (Browser::Type), or -1 if the request |
| 1150 // failed. |
| 1151 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_Type, int, int) |
| 1152 |
| 1153 // Opens a new browser window of a specific type. |
| 1154 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_OpenNewBrowserWindowOfType, |
| 1155 int /* Type (Browser::Type) */, |
| 1156 bool /* show */ ) |
| 1157 |
1146 | 1158 |
1147 IPC_END_MESSAGES(Automation) | 1159 IPC_END_MESSAGES(Automation) |
OLD | NEW |