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

Unified Diff: chrome/common/render_messages.h

Issue 1992006: Do right-alignment of popups when WebKit indicates to do so. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 47162)
+++ chrome/common/render_messages.h (working copy)
@@ -492,6 +492,9 @@
// 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
@@ -2116,6 +2119,7 @@
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
@@ -2123,7 +2127,8 @@
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"(");
@@ -2136,6 +2141,8 @@
LogParam(p.selected_item, l);
l->append(L", ");
LogParam(p.popup_items, l);
+ l->append(L", ");
+ LogParam(p.right_aligned, l);
l->append(L")");
}
};
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698