OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 IPC_MESSAGE_ROUTED2(ViewMsg_HandleMessageFromExternalHost, | 454 IPC_MESSAGE_ROUTED2(ViewMsg_HandleMessageFromExternalHost, |
455 std::string /* The target for the message */, | 455 std::string /* The target for the message */, |
456 std::string /* The message */) | 456 std::string /* The message */) |
457 | 457 |
458 // Sent to the renderer when a popup window should no longer count against | 458 // Sent to the renderer when a popup window should no longer count against |
459 // the current popup count (either because it's not a popup or because it was | 459 // the current popup count (either because it's not a popup or because it was |
460 // a generated by a user action or because a constrained popup got turned | 460 // a generated by a user action or because a constrained popup got turned |
461 // into a full window). | 461 // into a full window). |
462 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) | 462 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) |
463 | 463 |
| 464 // Reply to the ViewHostMsg_QueryFormFieldAutofill message with the autofill |
| 465 // suggestions. |
| 466 IPC_MESSAGE_ROUTED4(ViewMsg_AutofillSuggestions, |
| 467 int64 /* id of the text input field */, |
| 468 int /* id of the request message */, |
| 469 std::vector<std::wstring> /* suggestions */, |
| 470 int /* index of default suggestion */) |
| 471 |
464 IPC_END_MESSAGES(View) | 472 IPC_END_MESSAGES(View) |
465 | 473 |
466 | 474 |
467 //----------------------------------------------------------------------------- | 475 //----------------------------------------------------------------------------- |
468 // WebContents messages | 476 // WebContents messages |
469 // These are messages sent from the renderer to the browser process. | 477 // These are messages sent from the renderer to the browser process. |
470 | 478 |
471 IPC_BEGIN_MESSAGES(ViewHost, 2) | 479 IPC_BEGIN_MESSAGES(ViewHost, 2) |
472 // Sent by the renderer when it is creating a new window. The browser creates | 480 // Sent by the renderer when it is creating a new window. The browser creates |
473 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 481 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
474 // MSG_ROUTING_NONE, the view couldn't be created. modal_dialog_event is set | 482 // MSG_ROUTING_NONE, the view couldn't be created. modal_dialog_event is set |
475 // by the browser when a modal dialog is shown. | 483 // by the browser when a modal dialog is shown. |
476 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWindow, | 484 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWindow, |
477 int /* opener_id */, | 485 int /* opener_id */, |
478 bool /* user_gesture */, | 486 bool /* user_gesture */, |
479 int /* route_id */, | 487 int /* route_id */, |
480 HANDLE /* modal_dialog_event */) | 488 HANDLE /* modal_dialog_event */) |
481 | 489 |
482 // Similar to ViewHostMsg_CreateView, except used for sub-widgets, like | 490 // Similar to ViewHostMsg_CreateView, except used for sub-widgets, like |
483 // <select> dropdowns. This message is sent to the WebContents that | 491 // <select> dropdowns. This message is sent to the WebContents that |
484 // contains the widget being created. | 492 // contains the widget being created. |
485 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWidget, | 493 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, |
486 int /* opener_id */, | 494 int /* opener_id */, |
| 495 bool /* focus on show */, |
487 int /* route_id */) | 496 int /* route_id */) |
488 | 497 |
489 // These two messages are sent as a result of the above two, in the browser | 498 // These two messages are sent as a result of the above two, in the browser |
490 // process, from RenderWidgetHelper to RenderViewHost. | 499 // process, from RenderWidgetHelper to RenderViewHost. |
491 IPC_MESSAGE_ROUTED2(ViewHostMsg_CreateWindowWithRoute, | 500 IPC_MESSAGE_ROUTED2(ViewHostMsg_CreateWindowWithRoute, |
492 int /* route_id */, | 501 int /* route_id */, |
493 HANDLE /* modal_dialog_event */) | 502 HANDLE /* modal_dialog_event */) |
494 | 503 |
495 IPC_MESSAGE_ROUTED1(ViewHostMsg_CreateWidgetWithRoute, | 504 IPC_MESSAGE_ROUTED2(ViewHostMsg_CreateWidgetWithRoute, |
496 int /* route_id */) | 505 int /* route_id */, |
| 506 bool /* focus on show */) |
497 | 507 |
498 // These two messages are sent to the parent RenderViewHost to display the | 508 // These two messages are sent to the parent RenderViewHost to display the |
499 // page/widget that was created by CreateView/CreateWidget. routing_id | 509 // page/widget that was created by CreateView/CreateWidget. routing_id |
500 // refers to the id that was returned from the Create message above. | 510 // refers to the id that was returned from the Create message above. |
501 // The initial_position parameter is a rectangle in screen coordinates. | 511 // The initial_position parameter is a rectangle in screen coordinates. |
502 // | 512 // |
503 // FUTURE: there will probably be flags here to control if the result is | 513 // FUTURE: there will probably be flags here to control if the result is |
504 // in a new window. | 514 // in a new window. |
505 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, | 515 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, |
506 int /* route_id */, | 516 int /* route_id */, |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 // Notify the browser that this render either has or doesn't have a | 1069 // Notify the browser that this render either has or doesn't have a |
1060 // beforeunload or unload handler. | 1070 // beforeunload or unload handler. |
1061 IPC_MESSAGE_ROUTED1(ViewHostMsg_UnloadListenerChanged, | 1071 IPC_MESSAGE_ROUTED1(ViewHostMsg_UnloadListenerChanged, |
1062 bool /* has_listener */) | 1072 bool /* has_listener */) |
1063 | 1073 |
1064 // Returns the window location of the window this widget is embeded in. | 1074 // Returns the window location of the window this widget is embeded in. |
1065 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, | 1075 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, |
1066 HWND /* window */, | 1076 HWND /* window */, |
1067 gfx::Rect /* Out: Window location */) | 1077 gfx::Rect /* Out: Window location */) |
1068 | 1078 |
| 1079 // Queries the browser for suggestion for autofill in a form input field. |
| 1080 IPC_MESSAGE_ROUTED4(ViewHostMsg_QueryFormFieldAutofill, |
| 1081 std::wstring /* field name */, |
| 1082 std::wstring /* user entered text */, |
| 1083 int64 /* id of the text input field */, |
| 1084 int /* id of this message */) |
| 1085 |
1069 IPC_END_MESSAGES(ViewHost) | 1086 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |