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 "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 IPC_STRUCT_MEMBER(int, opener_route_id) | 674 IPC_STRUCT_MEMBER(int, opener_route_id) |
675 | 675 |
676 // Whether the RenderView should initially be swapped out. | 676 // Whether the RenderView should initially be swapped out. |
677 IPC_STRUCT_MEMBER(bool, swapped_out) | 677 IPC_STRUCT_MEMBER(bool, swapped_out) |
678 | 678 |
679 // The initial page ID to use for this view, which must be larger than any | 679 // The initial page ID to use for this view, which must be larger than any |
680 // existing navigation that might be loaded in the view. Page IDs are unique | 680 // existing navigation that might be loaded in the view. Page IDs are unique |
681 // to a view and are only updated by the renderer after this initial value. | 681 // to a view and are only updated by the renderer after this initial value. |
682 IPC_STRUCT_MEMBER(int32, next_page_id) | 682 IPC_STRUCT_MEMBER(int32, next_page_id) |
683 | 683 |
684 // The properties of the screen associated with the view. | |
685 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) | |
686 | |
687 // The name of the channel with which a guest talks to its embedder. | 684 // The name of the channel with which a guest talks to its embedder. |
688 // If this newly created RenderView has no embedder this string will be | 685 // If this newly created RenderView has no embedder this string will be |
689 // empty. | 686 // empty. |
690 IPC_STRUCT_MEMBER(std::string, embedder_channel_name) | 687 IPC_STRUCT_MEMBER(std::string, embedder_channel_name) |
691 | 688 |
692 // The identifier in the embedder render process of the container hosting this | 689 // The identifier in the embedder render process of the container hosting this |
693 // guest RenderView. The embedder_channel_name and embedder_container_id | 690 // guest RenderView. The embedder_channel_name and embedder_container_id |
694 // together uniquely identify a browser plugin instance. | 691 // together uniquely identify a browser plugin instance. |
695 IPC_STRUCT_MEMBER(int, embedder_container_id) | 692 IPC_STRUCT_MEMBER(int, embedder_container_id) |
696 | 693 |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 | 1753 |
1757 #if defined(OS_MACOSX) | 1754 #if defined(OS_MACOSX) |
1758 // Request that the browser load a font into shared memory for us. | 1755 // Request that the browser load a font into shared memory for us. |
1759 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1756 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
1760 FontDescriptor /* font to load */, | 1757 FontDescriptor /* font to load */, |
1761 uint32 /* buffer size */, | 1758 uint32 /* buffer size */, |
1762 base::SharedMemoryHandle /* font data */, | 1759 base::SharedMemoryHandle /* font data */, |
1763 uint32 /* font id */) | 1760 uint32 /* font id */) |
1764 #endif | 1761 #endif |
1765 | 1762 |
| 1763 // Returns WebScreenInfo corresponding to the view. |
| 1764 // TODO(shess): Provide a mapping from reply_msg->routing_id() to |
| 1765 // HWND so that we can eliminate the NativeViewId parameter. |
| 1766 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, |
| 1767 gfx::NativeViewId /* view */, |
| 1768 WebKit::WebScreenInfo /* results */) |
| 1769 |
1766 // Send the tooltip text for the current mouse position to the browser. | 1770 // Send the tooltip text for the current mouse position to the browser. |
1767 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 1771 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
1768 string16 /* tooltip text string */, | 1772 string16 /* tooltip text string */, |
1769 WebKit::WebTextDirection /* text direction hint */) | 1773 WebKit::WebTextDirection /* text direction hint */) |
1770 | 1774 |
1771 // Notification that the text selection has changed. | 1775 // Notification that the text selection has changed. |
1772 // Note: The secound parameter is the character based offset of the string16 | 1776 // Note: The secound parameter is the character based offset of the string16 |
1773 // text in the document. | 1777 // text in the document. |
1774 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | 1778 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
1775 string16 /* text covers the selection range */, | 1779 string16 /* text covers the selection range */, |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 // (according to the value of is_hung). The browser can give the user the | 2089 // (according to the value of is_hung). The browser can give the user the |
2086 // option of killing the plugin. | 2090 // option of killing the plugin. |
2087 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2091 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
2088 int /* plugin_child_id */, | 2092 int /* plugin_child_id */, |
2089 FilePath /* path */, | 2093 FilePath /* path */, |
2090 bool /* is_hung */) | 2094 bool /* is_hung */) |
2091 | 2095 |
2092 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2096 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
2093 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2097 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
2094 int /* orientation */) | 2098 int /* orientation */) |
OLD | NEW |