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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // This message requests that a key press be performed. | 244 // This message requests that a key press be performed. |
245 // Request: | 245 // Request: |
246 // int - the handle of the window that's the context for this click | 246 // int - the handle of the window that's the context for this click |
247 // int - the ui::KeyboardCode of the key that was pressed. | 247 // int - the ui::KeyboardCode of the key that was pressed. |
248 // int - the flags which identify the modifiers (shift, ctrl, alt) | 248 // int - the flags which identify the modifiers (shift, ctrl, alt) |
249 // associated for, as defined in chrome/views/event.h | 249 // associated for, as defined in chrome/views/event.h |
250 IPC_MESSAGE_CONTROL3(AutomationMsg_DEPRECATED_WindowKeyPress, | 250 IPC_MESSAGE_CONTROL3(AutomationMsg_DEPRECATED_WindowKeyPress, |
251 int, | 251 int, |
252 int, | 252 int, |
253 int) | 253 int) |
254 | 254 #if defined(OS_WIN) |
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::NativeWindow /* Tab container window */, | 261 HWND /* Tab container window */, |
262 gfx::NativeWindow /* Tab window */, | 262 HWND /* 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 #endif // defined(OS_WIN) |
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, |
273 int, | 273 int, |
274 GURL, | 274 GURL, |
275 GURL, | 275 GURL, |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 // It is a notification that a navigation failed | 550 // It is a notification that a navigation failed |
551 // Request: | 551 // Request: |
552 // -int : The status code. | 552 // -int : The status code. |
553 // -GURL: The URL we failed to navigate to. | 553 // -GURL: The URL we failed to navigate to. |
554 // Response: | 554 // Response: |
555 // None expected | 555 // None expected |
556 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed, | 556 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed, |
557 int, | 557 int, |
558 GURL) | 558 GURL) |
559 | 559 |
560 #if defined(OS_WIN) && !defined(USE_AURA) | 560 #if defined(OS_WIN) |
561 // This message is an outgoing message from an automation client to Chrome. | 561 // This message is an outgoing message from an automation client to Chrome. |
562 // It is used to reposition a chrome tab window. | 562 // It is used to reposition a chrome tab window. |
563 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, | 563 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, |
564 int /* tab handle */, | 564 int /* tab handle */, |
565 Reposition_Params /* SetWindowPos params */) | 565 Reposition_Params /* SetWindowPos params */) |
566 #endif // defined(OS_WIN) | 566 #endif // defined(OS_WIN) |
567 | 567 |
568 // Tab load complete | 568 // Tab load complete |
569 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, | 569 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, |
570 GURL) | 570 GURL) |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 // See AutomationMsg_NavigationResponseValues for the navigation response | 710 // See AutomationMsg_NavigationResponseValues for the navigation response |
711 // values. | 711 // values. |
712 IPC_SYNC_MESSAGE_CONTROL2_1( | 712 IPC_SYNC_MESSAGE_CONTROL2_1( |
713 AutomationMsg_GoForwardBlockUntilNavigationsComplete, | 713 AutomationMsg_GoForwardBlockUntilNavigationsComplete, |
714 int, | 714 int, |
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 #if defined(OS_WIN) |
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::NativeWindow /* parent window */, | 725 HWND /* parent window */, |
726 gfx::NativeWindow /* Tab container window */, | 726 HWND /* Tab container window */, |
727 gfx::NativeWindow /* Tab window */, | 727 HWND /* 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 #endif // defined(OS_WIN) |
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, |
738 int, | 738 int, |
739 bool) | 739 bool) |
740 | 740 |
(...skipping 268 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 |