Chromium Code Reviews| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 |
| 255 #if defined(OS_WIN) | |
| 255 // This message notifies the AutomationProvider to create a tab which is | 256 // This message notifies the AutomationProvider to create a tab which is |
| 256 // hosted by an external process. | 257 // hosted by an external process. |
| 257 // Request: | 258 // Request: |
| 258 // ExternalTabSettings - settings for external tab | 259 // ExternalTabSettings - settings for external tab |
| 259 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_CreateExternalTab, | 260 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_CreateExternalTab, |
|
kkania
2013/02/26 16:36:28
Unfortunately, you need to preserve the line numbe
grt (UTC plus 2)
2013/02/26 16:55:45
Is it okay to put the new preprocessor conditional
| |
| 260 ExternalTabSettings /* settings*/, | 261 ExternalTabSettings /* settings*/, |
| 261 gfx::NativeWindow /* Tab container window */, | 262 HWND /* Tab container window */, |
| 262 gfx::NativeWindow /* Tab window */, | 263 HWND /* Tab window */, |
| 263 int /* Handle to the new tab */, | 264 int /* Handle to the new tab */, |
| 264 int /* Session Id of the new tab */) | 265 int /* Session Id of the new tab */) |
| 266 #endif // defined(OS_WIN) | |
| 265 | 267 |
| 266 // This message notifies the AutomationProvider to navigate to a specified | 268 // This message notifies the AutomationProvider to navigate to a specified |
| 267 // url in the external tab with given handle. The first parameter is the | 269 // 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. | 270 // handle to the tab resource. The second parameter is the target url. |
| 269 // The third parameter is the referrer. | 271 // The third parameter is the referrer. |
| 270 // The return value contains a status code which is nonnegative on success. | 272 // The return value contains a status code which is nonnegative on success. |
| 271 // see AutomationMsg_NavigationResponseValues for the navigation response. | 273 // see AutomationMsg_NavigationResponseValues for the navigation response. |
| 272 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigateInExternalTab, | 274 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigateInExternalTab, |
| 273 int, | 275 int, |
| 274 GURL, | 276 GURL, |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 550 // It is a notification that a navigation failed | 552 // It is a notification that a navigation failed |
| 551 // Request: | 553 // Request: |
| 552 // -int : The status code. | 554 // -int : The status code. |
| 553 // -GURL: The URL we failed to navigate to. | 555 // -GURL: The URL we failed to navigate to. |
| 554 // Response: | 556 // Response: |
| 555 // None expected | 557 // None expected |
| 556 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed, | 558 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed, |
| 557 int, | 559 int, |
| 558 GURL) | 560 GURL) |
| 559 | 561 |
| 560 #if defined(OS_WIN) && !defined(USE_AURA) | 562 #if defined(OS_WIN) |
| 561 // This message is an outgoing message from an automation client to Chrome. | 563 // This message is an outgoing message from an automation client to Chrome. |
| 562 // It is used to reposition a chrome tab window. | 564 // It is used to reposition a chrome tab window. |
| 563 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, | 565 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, |
| 564 int /* tab handle */, | 566 int /* tab handle */, |
| 565 Reposition_Params /* SetWindowPos params */) | 567 Reposition_Params /* SetWindowPos params */) |
| 566 #endif // defined(OS_WIN) | 568 #endif // defined(OS_WIN) |
| 567 | 569 |
| 568 // Tab load complete | 570 // Tab load complete |
| 569 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, | 571 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, |
| 570 GURL) | 572 GURL) |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 711 // values. | 713 // values. |
| 712 IPC_SYNC_MESSAGE_CONTROL2_1( | 714 IPC_SYNC_MESSAGE_CONTROL2_1( |
| 713 AutomationMsg_GoForwardBlockUntilNavigationsComplete, | 715 AutomationMsg_GoForwardBlockUntilNavigationsComplete, |
| 714 int, | 716 int, |
| 715 int, | 717 int, |
| 716 AutomationMsg_NavigationResponseValues) | 718 AutomationMsg_NavigationResponseValues) |
| 717 | 719 |
| 718 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, | 720 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, |
| 719 AttachExternalTabParams) | 721 AttachExternalTabParams) |
| 720 | 722 |
| 723 #if defined(OS_WIN) | |
| 721 // Sent when the automation client connects to an existing tab. | 724 // Sent when the automation client connects to an existing tab. |
| 722 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, | 725 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, |
| 723 uint64 /* cookie */, | 726 uint64 /* cookie */, |
| 724 bool /* allow/block tab*/, | 727 bool /* allow/block tab*/, |
| 725 gfx::NativeWindow /* parent window */, | 728 HWND /* parent window */, |
| 726 gfx::NativeWindow /* Tab container window */, | 729 HWND /* Tab container window */, |
| 727 gfx::NativeWindow /* Tab window */, | 730 HWND /* Tab window */, |
| 728 int /* Handle to the new tab */, | 731 int /* Handle to the new tab */, |
| 729 int /* Session Id of the new tab */) | 732 int /* Session Id of the new tab */) |
| 733 #endif // defined(OS_WIN) | |
| 730 | 734 |
| 731 // Simulate an end of session. Normally this happens when the user | 735 // Simulate an end of session. Normally this happens when the user |
| 732 // shuts down the machine or logs off. | 736 // shuts down the machine or logs off. |
| 733 // Request: | 737 // Request: |
| 734 // int - the handle of the browser | 738 // int - the handle of the browser |
| 735 // Response: | 739 // Response: |
| 736 // bool - true if succesful | 740 // bool - true if succesful |
| 737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, | 741 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, |
| 738 int, | 742 int, |
| 739 bool) | 743 bool) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1009 | 1013 |
| 1010 // Sent when the automation mouse event has been processed. | 1014 // Sent when the automation mouse event has been processed. |
| 1011 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | 1015 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, |
| 1012 bool /* success */, | 1016 bool /* success */, |
| 1013 std::string /* error message */) | 1017 std::string /* error message */) |
| 1014 | 1018 |
| 1015 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1019 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
| 1016 // This is the section for renderer -> browser automation messages. If it is | 1020 // 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 | 1021 // an automation <-> browser message, put it above this section. The "no line |
| 1018 // number change" applies only to the automation <-> browser messages. | 1022 // number change" applies only to the automation <-> browser messages. |
| OLD | NEW |