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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 // Request: | 921 // Request: |
922 // gfx::Rect - the bounds of the window | 922 // gfx::Rect - the bounds of the window |
923 // Response: | 923 // Response: |
924 // None expected | 924 // None expected |
925 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow, | 925 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow, |
926 gfx::Rect /* window position and dimentions */) | 926 gfx::Rect /* window position and dimentions */) |
927 | 927 |
928 // Call BeginTracing on the browser TraceController. This will tell all | 928 // Call BeginTracing on the browser TraceController. This will tell all |
929 // processes to start collecting trace events via base/debug/trace_event.h. | 929 // processes to start collecting trace events via base/debug/trace_event.h. |
930 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BeginTracing, | 930 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BeginTracing, |
931 std::string /* categories */, | 931 std::string /* category_patterns */, |
932 bool /* success */) | 932 bool /* success */) |
933 | 933 |
934 // End tracing (called after BeginTracing). This blocks until tracing has | 934 // End tracing (called after BeginTracing). This blocks until tracing has |
935 // stopped on all processes and all the events are ready to be retrieved. | 935 // stopped on all processes and all the events are ready to be retrieved. |
936 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_EndTracing, | 936 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_EndTracing, |
937 size_t /* num_trace_chunks */, | 937 size_t /* num_trace_chunks */, |
938 bool /* success */) | 938 bool /* success */) |
939 | 939 |
940 // Retrieve trace event data (called after EndTracing). Must call exactly | 940 // Retrieve trace event data (called after EndTracing). Must call exactly |
941 // |num_trace_chunks| times. | 941 // |num_trace_chunks| times. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 | 1009 |
1010 // Sent when the automation mouse event has been processed. | 1010 // Sent when the automation mouse event has been processed. |
1011 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | 1011 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, |
1012 bool /* success */, | 1012 bool /* success */, |
1013 std::string /* error message */) | 1013 std::string /* error message */) |
1014 | 1014 |
1015 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1015 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
1016 // This is the section for renderer -> browser automation messages. If it is | 1016 // This is the section for renderer -> browser automation messages. If it is |
1017 // an automation <-> browser message, put it above this section. The "no line | 1017 // an automation <-> browser message, put it above this section. The "no line |
1018 // number change" applies only to the automation <-> browser messages. | 1018 // number change" applies only to the automation <-> browser messages. |
OLD | NEW |