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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 // The session storage namespace ID this view should use. | 618 // The session storage namespace ID this view should use. |
619 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) | 619 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) |
620 | 620 |
621 // The name of the frame associated with this view (or empty if none). | 621 // The name of the frame associated with this view (or empty if none). |
622 IPC_STRUCT_MEMBER(string16, frame_name) | 622 IPC_STRUCT_MEMBER(string16, frame_name) |
623 | 623 |
624 // The initial page ID to use for this view, which must be larger than any | 624 // The initial page ID to use for this view, which must be larger than any |
625 // existing navigation that might be loaded in the view. Page IDs are unique | 625 // existing navigation that might be loaded in the view. Page IDs are unique |
626 // to a view and are only updated by the renderer after this initial value. | 626 // to a view and are only updated by the renderer after this initial value. |
627 IPC_STRUCT_MEMBER(int32, next_page_id) | 627 IPC_STRUCT_MEMBER(int32, next_page_id) |
| 628 |
| 629 // The properties of the screen associated with the view. |
| 630 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) |
628 IPC_STRUCT_END() | 631 IPC_STRUCT_END() |
629 | 632 |
630 // Messages sent from the browser to the renderer. | 633 // Messages sent from the browser to the renderer. |
631 | 634 |
632 // Sent to the RenderView when a new tab is swapped into an existing | 635 // Sent to the RenderView when a new tab is swapped into an existing |
633 // tab and the histories need to be merged. The existing tab has a history of | 636 // tab and the histories need to be merged. The existing tab has a history of |
634 // |merged_history_length| which precedes the history of the new tab. All | 637 // |merged_history_length| which precedes the history of the new tab. All |
635 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 638 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
636 // | 639 // |
637 // For example, suppose the history of page_ids in the new tab's RenderView | 640 // For example, suppose the history of page_ids in the new tab's RenderView |
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 | 1642 |
1640 #if defined(OS_MACOSX) | 1643 #if defined(OS_MACOSX) |
1641 // Request that the browser load a font into shared memory for us. | 1644 // Request that the browser load a font into shared memory for us. |
1642 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1645 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
1643 FontDescriptor /* font to load */, | 1646 FontDescriptor /* font to load */, |
1644 uint32 /* buffer size */, | 1647 uint32 /* buffer size */, |
1645 base::SharedMemoryHandle /* font data */, | 1648 base::SharedMemoryHandle /* font data */, |
1646 uint32 /* font id */) | 1649 uint32 /* font id */) |
1647 #endif | 1650 #endif |
1648 | 1651 |
1649 // Returns WebScreenInfo corresponding to the view. | |
1650 // TODO(shess): Provide a mapping from reply_msg->routing_id() to | |
1651 // HWND so that we can eliminate the NativeViewId parameter. | |
1652 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, | |
1653 gfx::NativeViewId /* view */, | |
1654 WebKit::WebScreenInfo /* results */) | |
1655 | |
1656 // Send the tooltip text for the current mouse position to the browser. | 1652 // Send the tooltip text for the current mouse position to the browser. |
1657 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 1653 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
1658 string16 /* tooltip text string */, | 1654 string16 /* tooltip text string */, |
1659 WebKit::WebTextDirection /* text direction hint */) | 1655 WebKit::WebTextDirection /* text direction hint */) |
1660 | 1656 |
1661 // Notification that the text selection has changed. | 1657 // Notification that the text selection has changed. |
1662 // Note: The secound parameter is the character based offset of the string16 | 1658 // Note: The secound parameter is the character based offset of the string16 |
1663 // text in the document. | 1659 // text in the document. |
1664 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | 1660 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
1665 string16 /* text covers the selection range */, | 1661 string16 /* text covers the selection range */, |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 // have a javascript send a native value (string, number, boolean) to the | 1940 // have a javascript send a native value (string, number, boolean) to the |
1945 // listener in Cpp. (DomAutomationController) | 1941 // listener in Cpp. (DomAutomationController) |
1946 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 1942 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
1947 std::string /* json_string */, | 1943 std::string /* json_string */, |
1948 int /* automation_id */) | 1944 int /* automation_id */) |
1949 | 1945 |
1950 // Enable or disable inverting of web content pixels, for users who prefer | 1946 // Enable or disable inverting of web content pixels, for users who prefer |
1951 // white-on-black. | 1947 // white-on-black. |
1952 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, | 1948 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, |
1953 bool /* invert */) | 1949 bool /* invert */) |
OLD | NEW |