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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1121 // Returns a metric event duration that was last recorded. Returns -1 if the | 1121 // Returns a metric event duration that was last recorded. Returns -1 if the |
1122 // event hasn't occurred yet. | 1122 // event hasn't occurred yet. |
1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration, | 1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration, |
1124 std::string /* event_name */, | 1124 std::string /* event_name */, |
1125 int /* duration ms */) | 1125 int /* duration ms */) |
1126 | 1126 |
1127 // Sent by automation provider - go to history entry via automation. | 1127 // Sent by automation provider - go to history entry via automation. |
1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, | 1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, |
1129 int) // numbers of entries (negative or positive) | 1129 int) // numbers of entries (negative or positive) |
1130 | 1130 |
1131 // Silently install the extension in the given crx file. | |
kkania
2011/08/03 16:01:56
Deprecate this instead, as seen below. Otherwise y
| |
1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_InstallExtension, | |
1133 FilePath /* full path to crx file */, | |
1134 AutomationMsg_ExtensionResponseValues) | |
1135 | |
1136 // DEPRECATED MESSAGE - But we must leave this comment and message so as | 1131 // DEPRECATED MESSAGE - But we must leave this comment and message so as |
1137 // not to perturb line numbers (see comment at top of file re __LINE__). | 1132 // not to perturb line numbers (see comment at top of file re __LINE__). |
1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DeprecatedMessageTwo, | 1133 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DeprecatedMessageTwo, |
1139 int, | 1134 int, |
1140 int) | 1135 int) |
1141 | 1136 |
1142 // DEPRECATED MESSAGE - But we must leave this comment and message so as | 1137 // DEPRECATED MESSAGE - But we must leave this comment and message so as |
1143 // not to perturb line numbers (see comment at top of file re __LINE__). | 1138 // not to perturb line numbers (see comment at top of file re __LINE__). |
1144 // (intentionally blank line) | 1139 // (intentionally blank line) |
1145 // (intentionally blank line) | 1140 // (intentionally blank line) |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1293 bool /* success */) | 1288 bool /* success */) |
1294 | 1289 |
1295 // Generic pyauto pattern to help avoid future addition of | 1290 // Generic pyauto pattern to help avoid future addition of |
1296 // automation messages. | 1291 // automation messages. |
1297 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, | 1292 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, |
1298 int /* browser_handle */, | 1293 int /* browser_handle */, |
1299 std::string /* JSON request */, | 1294 std::string /* JSON request */, |
1300 std::string /* JSON response */, | 1295 std::string /* JSON response */, |
1301 bool /* success */) | 1296 bool /* success */) |
1302 | 1297 |
1303 // Installs an extension from the crx file and returns its id. | 1298 // Installs an extension from a crx file or unpacked extension folder |
1304 // On error, |extension handle| will be 0. | 1299 // and returns its id. On error, |extension handle| will be 0. |
1305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_InstallExtensionAndGetHandle, | 1300 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_InstallExtension, |
1306 FilePath /* full path to crx file */, | 1301 std::string /* full path to crx or unpacked dir */, |
kkania
2011/08/03 16:01:56
hmm, in chromedriver we just started depending on
dtu
2011/08/03 19:31:53
I can move the string -> FilePath conversion into
kkania
2011/08/03 20:25:34
Renaming is an ok approach too.
| |
1307 bool /* with UI */, | 1302 bool /* with UI */, |
1308 int /* extension handle */) | 1303 int /* extension handle */) |
1309 | 1304 |
1310 // Waits for the next extension test result. Sets |test result| as the | 1305 // Waits for the next extension test result. Sets |test result| as the |
1311 // received result and |message| as any accompanying message with the | 1306 // received result and |message| as any accompanying message with the |
1312 // result, which could be the empty string. | 1307 // result, which could be the empty string. |
1313 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_WaitForExtensionTestResult, | 1308 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_WaitForExtensionTestResult, |
1314 bool /* test result */, | 1309 bool /* test result */, |
1315 std::string /* message */) | 1310 std::string /* message */) |
1316 | 1311 |
1317 // Uninstalls an extension. On success |success| is true. | 1312 // Uninstalls an extension. On success |success| is true. |
1318 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_UninstallExtension, | 1313 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_UninstallExtension, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1486 // Sent when the renderer has completed or canceled a client redirect for a | 1481 // Sent when the renderer has completed or canceled a client redirect for a |
1487 // particular frame. This message may be sent multiple times for the same | 1482 // particular frame. This message may be sent multiple times for the same |
1488 // redirect. | 1483 // redirect. |
1489 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, | 1484 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, |
1490 int64 /* frame_id */) | 1485 int64 /* frame_id */) |
1491 | 1486 |
1492 | 1487 |
1493 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1488 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
1494 // This is the section for renderer -> browser automation messages. If it is | 1489 // This is the section for renderer -> browser automation messages. If it is |
1495 // an automation <-> browser message, put it above this section. | 1490 // an automation <-> browser message, put it above this section. |
OLD | NEW |