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