summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:47:41 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:47:41 +0000
commit6780b3bd5805018c242cde0a9cff3f48d12e4649 (patch)
tree4d208f861eb7d181010c5b230aad39ae96807bb7 /chrome/common/render_messages.h
parent91451171aa98b6e44238517f39fc58a86028d75d (diff)
downloadchromium_src-6780b3bd5805018c242cde0a9cff3f48d12e4649.zip
chromium_src-6780b3bd5805018c242cde0a9cff3f48d12e4649.tar.gz
chromium_src-6780b3bd5805018c242cde0a9cff3f48d12e4649.tar.bz2
Add a label member to the FormField class. This member will hold the value of the field's label once we parse this value from the DOM.
BUG=none TEST=none Review URL: http://codereview.chromium.org/418032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 3403448..b6ccc67 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -827,6 +827,7 @@ struct ParamTraits<webkit_glue::FormFieldValues> {
WriteParam(m, p.elements.size());
std::vector<webkit_glue::FormField>::const_iterator itr;
for (itr = p.elements.begin(); itr != p.elements.end(); itr++) {
+ WriteParam(m, itr->label());
WriteParam(m, itr->name());
WriteParam(m, itr->html_input_type());
WriteParam(m, itr->value());
@@ -843,11 +844,12 @@ struct ParamTraits<webkit_glue::FormFieldValues> {
result = result && ReadParam(m, iter, &elements_size);
p->elements.resize(elements_size);
for (size_t i = 0; i < elements_size; i++) {
- string16 name, type, value;
+ string16 label, name, type, value;
+ result = result && ReadParam(m, iter, &label);
result = result && ReadParam(m, iter, &name);
result = result && ReadParam(m, iter, &type);
result = result && ReadParam(m, iter, &value);
- p->elements[i] = webkit_glue::FormField(name, type, value);
+ p->elements[i] = webkit_glue::FormField(label, name, type, value);
}
return result;
}