| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CloseTab, | 305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CloseTab, |
| 306 int, | 306 int, |
| 307 bool, | 307 bool, |
| 308 bool) | 308 bool) |
| 309 | 309 |
| 310 // This message requests that the browser be closed. | 310 // This message requests that the browser be closed. |
| 311 // Request: | 311 // Request: |
| 312 // - int: handle of the browser which contains the tab | 312 // - int: handle of the browser which contains the tab |
| 313 // Response: | 313 // Response: |
| 314 // - bool: whether the operation was successfull. | 314 // - bool: whether the operation was successfull. |
| 315 // - bool: whether the browser process will be terminated as a result (if | 315 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_CloseBrowser, |
| 316 // this was the last closed browser window). | |
| 317 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_CloseBrowser, | |
| 318 int, | 316 int, |
| 319 bool, | |
| 320 bool) | 317 bool) |
| 321 | 318 |
| 322 #if defined(OS_WIN) | 319 #if defined(OS_WIN) |
| 323 // TODO(port): Port these messages. | 320 // TODO(port): Port these messages. |
| 324 // | 321 // |
| 325 // This message is an outgoing message from Chrome to an external host. | 322 // This message is an outgoing message from Chrome to an external host. |
| 326 // It is a request to process a keyboard accelerator. | 323 // It is a request to process a keyboard accelerator. |
| 327 // Request: | 324 // Request: |
| 328 // -MSG: The keyboard message | 325 // -MSG: The keyboard message |
| 329 // Response: | 326 // Response: |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 | 998 |
| 1002 // Sent when the automation mouse event has been processed. | 999 // Sent when the automation mouse event has been processed. |
| 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | 1000 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, |
| 1004 bool /* success */, | 1001 bool /* success */, |
| 1005 std::string /* error message */) | 1002 std::string /* error message */) |
| 1006 | 1003 |
| 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1004 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
| 1008 // This is the section for renderer -> browser automation messages. If it is | 1005 // This is the section for renderer -> browser automation messages. If it is |
| 1009 // an automation <-> browser message, put it above this section. The "no line | 1006 // an automation <-> browser message, put it above this section. The "no line |
| 1010 // number change" applies only to the automation <-> browser messages. | 1007 // number change" applies only to the automation <-> browser messages. |
| OLD | NEW |