| 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 IPC_STRUCT_MEMBER(double, item_font_size) | 459 IPC_STRUCT_MEMBER(double, item_font_size) |
| 460 | 460 |
| 461 // The currently selected (displayed) item in the menu. | 461 // The currently selected (displayed) item in the menu. |
| 462 IPC_STRUCT_MEMBER(int, selected_item) | 462 IPC_STRUCT_MEMBER(int, selected_item) |
| 463 | 463 |
| 464 // The entire list of items in the popup menu. | 464 // The entire list of items in the popup menu. |
| 465 IPC_STRUCT_MEMBER(std::vector<WebMenuItem>, popup_items) | 465 IPC_STRUCT_MEMBER(std::vector<WebMenuItem>, popup_items) |
| 466 | 466 |
| 467 // Whether items should be right-aligned. | 467 // Whether items should be right-aligned. |
| 468 IPC_STRUCT_MEMBER(bool, right_aligned) | 468 IPC_STRUCT_MEMBER(bool, right_aligned) |
| 469 |
| 470 // Whether this is a multi-select popup. |
| 471 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) |
| 469 IPC_STRUCT_END() | 472 IPC_STRUCT_END() |
| 470 | 473 |
| 471 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) | 474 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) |
| 472 // The bitmap to be painted into the view at the locations specified by | 475 // The bitmap to be painted into the view at the locations specified by |
| 473 // update_rects. | 476 // update_rects. |
| 474 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap) | 477 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap) |
| 475 | 478 |
| 476 // The position and size of the bitmap. | 479 // The position and size of the bitmap. |
| 477 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) | 480 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) |
| 478 | 481 |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 ViewMsg_PostMessage_Params) | 969 ViewMsg_PostMessage_Params) |
| 967 | 970 |
| 968 // Request for the renderer to evaluate an xpath to a frame and insert css | 971 // Request for the renderer to evaluate an xpath to a frame and insert css |
| 969 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on | 972 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on |
| 970 // allowed xpath expressions. | 973 // allowed xpath expressions. |
| 971 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest, | 974 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest, |
| 972 string16, /* frame_xpath */ | 975 string16, /* frame_xpath */ |
| 973 std::string /* css string */) | 976 std::string /* css string */) |
| 974 | 977 |
| 975 // External popup menus. | 978 // External popup menus. |
| 979 #if defined(OS_MACOSX) |
| 976 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, | 980 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, |
| 977 int /* selected index, -1 means no selection */) | 981 int /* selected index, -1 means no selection */) |
| 982 #elif defined(OS_ANDROID) |
| 983 IPC_MESSAGE_ROUTED2(ViewMsg_SelectPopupMenuItems, |
| 984 bool /* user canceled the popup */, |
| 985 std::vector<int> /* selected indices */) |
| 986 #endif |
| 978 | 987 |
| 979 // Change the zoom level for the current main frame. If the level actually | 988 // Change the zoom level for the current main frame. If the level actually |
| 980 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 989 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 981 // telling it what url got zoomed and what its current zoom level is. | 990 // telling it what url got zoomed and what its current zoom level is. |
| 982 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 991 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 983 content::PageZoom /* function */) | 992 content::PageZoom /* function */) |
| 984 | 993 |
| 985 // Set the zoom level for the current main frame. If the level actually | 994 // Set the zoom level for the current main frame. If the level actually |
| 986 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 995 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 987 // telling it what url got zoomed and what its current zoom level is. | 996 // telling it what url got zoomed and what its current zoom level is. |
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2073 // (according to the value of is_hung). The browser can give the user the | 2082 // (according to the value of is_hung). The browser can give the user the |
| 2074 // option of killing the plugin. | 2083 // option of killing the plugin. |
| 2075 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2084 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
| 2076 int /* plugin_child_id */, | 2085 int /* plugin_child_id */, |
| 2077 FilePath /* path */, | 2086 FilePath /* path */, |
| 2078 bool /* is_hung */) | 2087 bool /* is_hung */) |
| 2079 | 2088 |
| 2080 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2089 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
| 2081 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2090 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
| 2082 int /* orientation */) | 2091 int /* orientation */) |
| OLD | NEW |