| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
| 8 // messages), or one that's been assigned by the proxy (for calls | 8 // messages), or one that's been assigned by the proxy (for calls |
| 9 // which expect a response). The routing_id shouldn't be used for | 9 // which expect a response). The routing_id shouldn't be used for |
| 10 // any other purpose in these message types. | 10 // any other purpose in these message types. |
| (...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 // Generic pyauto pattern to help avoid future addition of | 1295 // Generic pyauto pattern to help avoid future addition of |
| 1296 // automation messages. | 1296 // automation messages. |
| 1297 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, | 1297 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, |
| 1298 int /* browser_handle */, | 1298 int /* browser_handle */, |
| 1299 std::string /* JSON request */, | 1299 std::string /* JSON request */, |
| 1300 std::string /* JSON response */, | 1300 std::string /* JSON response */, |
| 1301 bool /* success */) | 1301 bool /* success */) |
| 1302 | 1302 |
| 1303 // Installs an extension from a crx file or unpacked extension folder | 1303 // Installs an extension from a crx file or unpacked extension folder |
| 1304 // and returns its id. On error, |extension handle| will be 0. | 1304 // and returns its id. On error, |extension handle| will be 0. |
| 1305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_InstallExtension, | 1305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED2_InstallExtension, |
| 1306 FilePath /* full path to crx or unpacked dir */, | 1306 FilePath /* full path to crx or unpacked dir */, |
| 1307 bool /* with UI */, | 1307 bool /* with UI */, |
| 1308 int /* extension handle */) | 1308 int /* extension handle */) |
| 1309 | 1309 |
| 1310 // Waits for the next extension test result. Sets |test result| as the | 1310 // Waits for the next extension test result. Sets |test result| as the |
| 1311 // received result and |message| as any accompanying message with the | 1311 // received result and |message| as any accompanying message with the |
| 1312 // result, which could be the empty string. | 1312 // result, which could be the empty string. |
| 1313 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_WaitForExtensionTestResult, | 1313 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_DEPRECATED_WaitForExtensionTestResult, |
| 1314 bool /* test result */, | 1314 bool /* test result */, |
| 1315 std::string /* message */) | 1315 std::string /* message */) |
| 1316 | 1316 |
| 1317 // Uninstalls an extension. On success |success| is true. | 1317 // Uninstalls an extension. On success |success| is true. |
| 1318 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_UninstallExtension, | 1318 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_UninstallExtension, |
| 1319 int /* extension handle */, | 1319 int /* extension handle */, |
| 1320 bool /* success */) | 1320 bool /* success */) |
| 1321 | 1321 |
| 1322 // Enables an extension. On success |success| is true. | 1322 // Enables an extension. On success |success| is true. |
| 1323 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_EnableExtension, | 1323 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_EnableExtension, |
| 1324 int /* extension handle */, | 1324 int /* extension handle */, |
| 1325 bool /* success */) | 1325 bool /* success */) |
| 1326 | 1326 |
| 1327 // Disables an extension. On success |success| is true. | 1327 // Disables an extension. On success |success| is true. |
| 1328 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DisableExtension, | 1328 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_DisableExtension, |
| 1329 int /* extension handle */, | 1329 int /* extension handle */, |
| 1330 bool /* success */) | 1330 bool /* success */) |
| 1331 | 1331 |
| 1332 // Executes the action associated with the given extension. This executes | 1332 // Executes the action associated with the given extension. This executes |
| 1333 // the extension's page or browser action in the given browser, but does | 1333 // the extension's page or browser action in the given browser, but does |
| 1334 // not open popups. On success |success| is true. | 1334 // not open popups. On success |success| is true. |
| 1335 IPC_SYNC_MESSAGE_CONTROL2_1( | 1335 IPC_SYNC_MESSAGE_CONTROL2_1( |
| 1336 AutomationMsg_ExecuteExtensionActionInActiveTabAsync, | 1336 AutomationMsg_DEPRECATED_ExecuteExtensionActionInActiveTabAsync, |
| 1337 int /* extension handle */, | 1337 int /* extension handle */, |
| 1338 int /* browser handle */, | 1338 int /* browser handle */, |
| 1339 bool /* success */) | 1339 bool /* success */) |
| 1340 | 1340 |
| 1341 // Moves the browser action to the given index in the browser action toolbar. | 1341 // Moves the browser action to the given index in the browser action toolbar. |
| 1342 // On success |success| is true. | 1342 // On success |success| is true. |
| 1343 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_MoveExtensionBrowserAction, | 1343 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_MoveExtensionBrowserAction, |
| 1344 int /* extension handle */, | 1344 int /* extension handle */, |
| 1345 int /* index */, | 1345 int /* index */, |
| 1346 bool /* success */) | 1346 bool /* success */) |
| 1347 | 1347 |
| 1348 // Gets an extension property |property type|. On success |success| is true, | 1348 // Gets an extension property |property type|. On success |success| is true, |
| 1349 // and |property value| is set. | 1349 // and |property value| is set. |
| 1350 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_GetExtensionProperty, | 1350 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_DEPRECATED_GetExtensionProperty, |
| 1351 int /* extension handle */, | 1351 int /* extension handle */, |
| 1352 AutomationMsg_ExtensionProperty /* property type */, | 1352 AutomationMsg_DEPRECATED_ExtensionProperty /* property type */, |
| 1353 bool /* success */, | 1353 bool /* success */, |
| 1354 std::string /* property value */) | 1354 std::string /* property value */) |
| 1355 | 1355 |
| 1356 // Resets to the default theme. | 1356 // Resets to the default theme. |
| 1357 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) | 1357 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) |
| 1358 | 1358 |
| 1359 // Navigates asynchronously to a URL with a certain disposition, | 1359 // Navigates asynchronously to a URL with a certain disposition, |
| 1360 // like in a new tab. | 1360 // like in a new tab. |
| 1361 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigationAsyncWithDisposition, | 1361 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigationAsyncWithDisposition, |
| 1362 int /* tab handle */, | 1362 int /* tab handle */, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 // Sent when the renderer has completed or canceled a client redirect for a | 1532 // Sent when the renderer has completed or canceled a client redirect for a |
| 1533 // particular frame. This message may be sent multiple times for the same | 1533 // particular frame. This message may be sent multiple times for the same |
| 1534 // redirect. | 1534 // redirect. |
| 1535 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, | 1535 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, |
| 1536 int64 /* frame_id */) | 1536 int64 /* frame_id */) |
| 1537 | 1537 |
| 1538 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1538 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
| 1539 // This is the section for renderer -> browser automation messages. If it is | 1539 // This is the section for renderer -> browser automation messages. If it is |
| 1540 // an automation <-> browser message, put it above this section. The "no line | 1540 // an automation <-> browser message, put it above this section. The "no line |
| 1541 // number change" applies only to the automation <-> browser messages. | 1541 // number change" applies only to the automation <-> browser messages. |
| OLD | NEW |