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 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1515 | 1515 |
1516 // Requests a snapshot. | 1516 // Requests a snapshot. |
1517 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) | 1517 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) |
1518 | 1518 |
1519 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 1519 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
1520 // Requests to dump a heap profile. | 1520 // Requests to dump a heap profile. |
1521 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump, | 1521 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump, |
1522 std::string /* reason */) | 1522 std::string /* reason */) |
1523 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 1523 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
1524 | 1524 |
1525 // Requests processing of the given mouse event. | |
1526 IPC_MESSAGE_ROUTED1(AutomationMsg_ProcessMouseEvent, | |
1527 AutomationMouseEvent) | |
dennis_jeffrey
2012/05/08 19:18:49
This will change the line numbers of the entries b
kkania
2012/05/09 18:19:59
Yes, this is ok.
| |
1528 | |
1525 // Renderer -> browser messages. | 1529 // Renderer -> browser messages. |
1526 | 1530 |
1527 // Sent as a response to |AutomationMsg_Snapshot|. | 1531 // Sent as a response to |AutomationMsg_Snapshot|. |
1528 IPC_MESSAGE_ROUTED3(AutomationMsg_SnapshotEntirePageACK, | 1532 IPC_MESSAGE_ROUTED3(AutomationMsg_SnapshotEntirePageACK, |
1529 bool /* success */, | 1533 bool /* success */, |
1530 std::vector<unsigned char> /* png bytes */, | 1534 std::vector<unsigned char> /* png bytes */, |
1531 std::string /* error message */) | 1535 std::string /* error message */) |
1532 | 1536 |
1533 // Sent when the renderer has scheduled a client redirect to occur. | 1537 // Sent when the renderer has scheduled a client redirect to occur. |
1534 IPC_MESSAGE_ROUTED2(AutomationMsg_WillPerformClientRedirect, | 1538 IPC_MESSAGE_ROUTED2(AutomationMsg_WillPerformClientRedirect, |
1535 int64 /* frame_id */, | 1539 int64 /* frame_id */, |
1536 double /* # of seconds till redirect will be performed */) | 1540 double /* # of seconds till redirect will be performed */) |
1537 | 1541 |
1538 // Sent when the renderer has completed or canceled a client redirect for a | 1542 // Sent when the renderer has completed or canceled a client redirect for a |
1539 // particular frame. This message may be sent multiple times for the same | 1543 // particular frame. This message may be sent multiple times for the same |
1540 // redirect. | 1544 // redirect. |
1541 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, | 1545 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, |
1542 int64 /* frame_id */) | 1546 int64 /* frame_id */) |
1543 | 1547 |
1548 // Sent right before processing a mouse event at the given point. | |
1549 // This is needed in addition to AutomationMsg_ProcessMouseEventACK so that | |
1550 // the client knows where the event occurred even if the event causes a modal | |
1551 // dialog to appear which blocks further messages. | |
1552 IPC_MESSAGE_ROUTED1(AutomationMsg_WillProcessMouseEventAt, | |
1553 gfx::Point) | |
1554 | |
1555 // Sent when the automation mouse event has been processed. | |
1556 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | |
1557 bool /* success */, | |
1558 std::string /* error message */) | |
1559 | |
dennis_jeffrey
2012/05/08 19:18:49
nit: remove this blank line
kkania
2012/05/09 18:19:59
Done.
| |
1560 | |
1544 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1561 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
1545 // This is the section for renderer -> browser automation messages. If it is | 1562 // This is the section for renderer -> browser automation messages. If it is |
1546 // an automation <-> browser message, put it above this section. The "no line | 1563 // an automation <-> browser message, put it above this section. The "no line |
1547 // number change" applies only to the automation <-> browser messages. | 1564 // number change" applies only to the automation <-> browser messages. |
OLD | NEW |