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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 int, | 251 int, |
252 int, | 252 int, |
253 int) | 253 int) |
254 | 254 |
255 // This message notifies the AutomationProvider to create a tab which is | 255 // This message notifies the AutomationProvider to create a tab which is |
256 // hosted by an external process. | 256 // hosted by an external process. |
257 // Request: | 257 // Request: |
258 // ExternalTabSettings - settings for external tab | 258 // ExternalTabSettings - settings for external tab |
259 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_CreateExternalTab, | 259 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_CreateExternalTab, |
260 ExternalTabSettings /* settings*/, | 260 ExternalTabSettings /* settings*/, |
261 gfx::AcceleratedWidget /* Tab container window */, | 261 gfx::NativeWindow /* Tab container window */, |
262 gfx::AcceleratedWidget /* Tab window */, | 262 gfx::NativeWindow /* Tab window */, |
263 int /* Handle to the new tab */, | 263 int /* Handle to the new tab */, |
264 int /* Session Id of the new tab */) | 264 int /* Session Id of the new tab */) |
265 | 265 |
266 // This message notifies the AutomationProvider to navigate to a specified | 266 // This message notifies the AutomationProvider to navigate to a specified |
267 // url in the external tab with given handle. The first parameter is the | 267 // url in the external tab with given handle. The first parameter is the |
268 // handle to the tab resource. The second parameter is the target url. | 268 // handle to the tab resource. The second parameter is the target url. |
269 // The third parameter is the referrer. | 269 // The third parameter is the referrer. |
270 // The return value contains a status code which is nonnegative on success. | 270 // The return value contains a status code which is nonnegative on success. |
271 // see AutomationMsg_NavigationResponseValues for the navigation response. | 271 // see AutomationMsg_NavigationResponseValues for the navigation response. |
272 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigateInExternalTab, | 272 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigateInExternalTab, |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 int, | 715 int, |
716 AutomationMsg_NavigationResponseValues) | 716 AutomationMsg_NavigationResponseValues) |
717 | 717 |
718 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, | 718 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, |
719 AttachExternalTabParams) | 719 AttachExternalTabParams) |
720 | 720 |
721 // Sent when the automation client connects to an existing tab. | 721 // Sent when the automation client connects to an existing tab. |
722 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, | 722 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, |
723 uint64 /* cookie */, | 723 uint64 /* cookie */, |
724 bool /* allow/block tab*/, | 724 bool /* allow/block tab*/, |
725 gfx::AcceleratedWidget /* parent window */, | 725 gfx::NativeWindow /* parent window */, |
726 gfx::AcceleratedWidget /* Tab container window */, | 726 gfx::NativeWindow /* Tab container window */, |
727 gfx::AcceleratedWidget /* Tab window */, | 727 gfx::NativeWindow /* Tab window */, |
728 int /* Handle to the new tab */, | 728 int /* Handle to the new tab */, |
729 int /* Session Id of the new tab */) | 729 int /* Session Id of the new tab */) |
730 | 730 |
731 // Simulate an end of session. Normally this happens when the user | 731 // Simulate an end of session. Normally this happens when the user |
732 // shuts down the machine or logs off. | 732 // shuts down the machine or logs off. |
733 // Request: | 733 // Request: |
734 // int - the handle of the browser | 734 // int - the handle of the browser |
735 // Response: | 735 // Response: |
736 // bool - true if succesful | 736 // bool - true if succesful |
737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, | 737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, |
(...skipping 271 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 |