| 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 gfx::Size /* max_size */) | 512 gfx::Size /* max_size */) |
| 513 | 513 |
| 514 // Used to instruct the RenderView to disalbe automatically resize. | 514 // Used to instruct the RenderView to disalbe automatically resize. |
| 515 IPC_MESSAGE_ROUTED1(ViewMsg_DisableAutoResize, | 515 IPC_MESSAGE_ROUTED1(ViewMsg_DisableAutoResize, |
| 516 gfx::Size /* new_size */) | 516 gfx::Size /* new_size */) |
| 517 | 517 |
| 518 // Changes the text direction of the currently selected input field (if any). | 518 // Changes the text direction of the currently selected input field (if any). |
| 519 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, | 519 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, |
| 520 blink::WebTextDirection /* direction */) | 520 blink::WebTextDirection /* direction */) |
| 521 | 521 |
| 522 // Tells the renderer to clear the focused element (if any). | |
| 523 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedElement) | |
| 524 | |
| 525 // Make the RenderView background transparent or opaque. | 522 // Make the RenderView background transparent or opaque. |
| 526 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackgroundOpaque, bool /* opaque */) | 523 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackgroundOpaque, bool /* opaque */) |
| 527 | 524 |
| 528 // Used to tell the renderer not to add scrollbars with height and | 525 // Used to tell the renderer not to add scrollbars with height and |
| 529 // width below a threshold. | 526 // width below a threshold. |
| 530 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows, | 527 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows, |
| 531 gfx::Size /* disable_scrollbar_size_limit */) | 528 gfx::Size /* disable_scrollbar_size_limit */) |
| 532 | 529 |
| 533 // Activate/deactivate the RenderView (i.e., set its controls' tint | 530 // Activate/deactivate the RenderView (i.e., set its controls' tint |
| 534 // accordingly, etc.). | 531 // accordingly, etc.). |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame, | 685 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame, |
| 689 bool /* uses_temporary_zoom_level */) | 686 bool /* uses_temporary_zoom_level */) |
| 690 | 687 |
| 691 // Sent to update part of the view. In response to this message, the host | 688 // Sent to update part of the view. In response to this message, the host |
| 692 // generates a ViewMsg_UpdateRect_ACK message. | 689 // generates a ViewMsg_UpdateRect_ACK message. |
| 693 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, | 690 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, |
| 694 ViewHostMsg_UpdateRect_Params) | 691 ViewHostMsg_UpdateRect_Params) |
| 695 | 692 |
| 696 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) | 693 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) |
| 697 | 694 |
| 698 // Message sent from renderer to the browser when focus changes inside the | |
| 699 // webpage. The first parameter says whether the newly focused element needs | |
| 700 // keyboard input (true for textfields, text areas and content editable divs). | |
| 701 // The second parameter is the node bounds relative to RenderWidgetHostView. | |
| 702 IPC_MESSAGE_ROUTED2(ViewHostMsg_FocusedNodeChanged, | |
| 703 bool /* is_editable_node */, | |
| 704 gfx::Rect /* node_bounds */) | |
| 705 | |
| 706 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor) | 695 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor) |
| 707 | 696 |
| 708 // Get the list of proxies to use for |url|, as a semicolon delimited list | 697 // Get the list of proxies to use for |url|, as a semicolon delimited list |
| 709 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". | 698 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". |
| 710 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, | 699 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, |
| 711 GURL /* url */, | 700 GURL /* url */, |
| 712 bool /* result */, | 701 bool /* result */, |
| 713 std::string /* proxy list */) | 702 std::string /* proxy list */) |
| 714 | 703 |
| 715 // A renderer sends this to the browser process when it wants to create a | 704 // A renderer sends this to the browser process when it wants to create a |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 int /* y */) | 914 int /* y */) |
| 926 | 915 |
| 927 #elif defined(OS_MACOSX) | 916 #elif defined(OS_MACOSX) |
| 928 // Receives content of a web page as plain text. | 917 // Receives content of a web page as plain text. |
| 929 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 918 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 930 #endif | 919 #endif |
| 931 | 920 |
| 932 // Adding a new message? Stick to the sort order above: first platform | 921 // Adding a new message? Stick to the sort order above: first platform |
| 933 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 922 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 934 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 923 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |