Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: content/common/view_messages.h

Issue 10436010: Multi-select <select> in 'external popup window' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after reverts and re-reverts.. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 IPC_STRUCT_MEMBER(double, item_font_size) 458 IPC_STRUCT_MEMBER(double, item_font_size)
459 459
460 // The currently selected (displayed) item in the menu. 460 // The currently selected (displayed) item in the menu.
461 IPC_STRUCT_MEMBER(int, selected_item) 461 IPC_STRUCT_MEMBER(int, selected_item)
462 462
463 // The entire list of items in the popup menu. 463 // The entire list of items in the popup menu.
464 IPC_STRUCT_MEMBER(std::vector<WebMenuItem>, popup_items) 464 IPC_STRUCT_MEMBER(std::vector<WebMenuItem>, popup_items)
465 465
466 // Whether items should be right-aligned. 466 // Whether items should be right-aligned.
467 IPC_STRUCT_MEMBER(bool, right_aligned) 467 IPC_STRUCT_MEMBER(bool, right_aligned)
468
469 // Whether this is a multi-select popup.
470 IPC_STRUCT_MEMBER(bool, allow_multiple_selection)
468 IPC_STRUCT_END() 471 IPC_STRUCT_END()
469 472
470 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) 473 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
471 // The bitmap to be painted into the view at the locations specified by 474 // The bitmap to be painted into the view at the locations specified by
472 // update_rects. 475 // update_rects.
473 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap) 476 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap)
474 477
475 // The position and size of the bitmap. 478 // The position and size of the bitmap.
476 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) 479 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)
477 480
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 954
952 // Request for the renderer to evaluate an xpath to a frame and insert css 955 // Request for the renderer to evaluate an xpath to a frame and insert css
953 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on 956 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on
954 // allowed xpath expressions. 957 // allowed xpath expressions.
955 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest, 958 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest,
956 string16, /* frame_xpath */ 959 string16, /* frame_xpath */
957 std::string /* css string */) 960 std::string /* css string */)
958 961
959 // External popup menus. 962 // External popup menus.
960 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, 963 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem,
961 int /* selected index, -1 means no selection */) 964 int /* selected index, -1 means no selection */)
Avi (use Gerrit) 2012/05/24 18:41:41 If ViewMsg_SelectPopupMenuItems gets an platform #
aruslan 2012/05/24 19:53:15 Done.
962 965
966
967 #if defined(OS_ANDROID)
968 // External popup menus.
969 IPC_MESSAGE_ROUTED2(ViewMsg_SelectPopupMenuItems,
970 bool /* user canceled the popup */,
971 std::vector<int> /* selected indices */)
972 #endif
973
963 // Change the zoom level for the current main frame. If the level actually 974 // Change the zoom level for the current main frame. If the level actually
964 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 975 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
965 // telling it what url got zoomed and what its current zoom level is. 976 // telling it what url got zoomed and what its current zoom level is.
966 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 977 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
967 content::PageZoom /* function */) 978 content::PageZoom /* function */)
968 979
969 // Set the zoom level for the current main frame. If the level actually 980 // Set the zoom level for the current main frame. If the level actually
970 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 981 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
971 // telling it what url got zoomed and what its current zoom level is. 982 // telling it what url got zoomed and what its current zoom level is.
972 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, 983 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel,
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 // (according to the value of is_hung). The browser can give the user the 2068 // (according to the value of is_hung). The browser can give the user the
2058 // option of killing the plugin. 2069 // option of killing the plugin.
2059 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2070 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2060 int /* plugin_child_id */, 2071 int /* plugin_child_id */,
2061 FilePath /* path */, 2072 FilePath /* path */,
2062 bool /* is_hung */) 2073 bool /* is_hung */)
2063 2074
2064 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2075 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2065 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2076 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2066 int /* orientation */) 2077 int /* orientation */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698