diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 22:13:04 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 22:13:04 +0000 |
commit | b88ab037fc20ab5dfe0f35d71e78acc8499979a5 (patch) | |
tree | 7d0a9863885e4c70fe1a24f021a28da8a95a736b /chrome/common | |
parent | 5e26d9d482761e38a15f8cb987294d979bc58576 (diff) | |
download | chromium_src-b88ab037fc20ab5dfe0f35d71e78acc8499979a5.zip chromium_src-b88ab037fc20ab5dfe0f35d71e78acc8499979a5.tar.gz chromium_src-b88ab037fc20ab5dfe0f35d71e78acc8499979a5.tar.bz2 |
Do right-alignment of popups when WebKit indicates to do so.
BUG=http://crbug.com/23106
TEST=as in bug
Review URL: http://codereview.chromium.org/1992006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index a2e4a81..e6dba64 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -492,6 +492,9 @@ struct ViewHostMsg_ShowPopup_Params { // The entire list of items in the popup menu. std::vector<WebMenuItem> popup_items; + + // Whether items should be right-aligned. + bool right_aligned; }; // Parameters for the IPC message ViewHostMsg_ScriptedPrint @@ -2076,6 +2079,7 @@ struct ParamTraits<ViewHostMsg_ShowPopup_Params> { WriteParam(m, p.item_font_size); WriteParam(m, p.selected_item); WriteParam(m, p.popup_items); + WriteParam(m, p.right_aligned); } static bool Read(const Message* m, void** iter, param_type* p) { return @@ -2083,7 +2087,8 @@ struct ParamTraits<ViewHostMsg_ShowPopup_Params> { ReadParam(m, iter, &p->item_height) && ReadParam(m, iter, &p->item_font_size) && ReadParam(m, iter, &p->selected_item) && - ReadParam(m, iter, &p->popup_items); + ReadParam(m, iter, &p->popup_items) && + ReadParam(m, iter, &p->right_aligned); } static void Log(const param_type& p, std::wstring* l) { l->append(L"("); @@ -2096,6 +2101,8 @@ struct ParamTraits<ViewHostMsg_ShowPopup_Params> { LogParam(p.selected_item, l); l->append(L", "); LogParam(p.popup_items, l); + l->append(L", "); + LogParam(p.right_aligned, l); l->append(L")"); } }; |