summaryrefslogtreecommitdiffstats
path: root/webkit/glue/form_data.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 20:47:56 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 20:47:56 +0000
commita755dc2df6712d2965b3ea2e6a0e90fe5fb3d0a3 (patch)
tree0b0c9b4f093989ee6ea2b3d7a50b92b4fc51e071 /webkit/glue/form_data.h
parent5811d97aae3f64e740b0163d02486d2154a9c472 (diff)
downloadchromium_src-a755dc2df6712d2965b3ea2e6a0e90fe5fb3d0a3.zip
chromium_src-a755dc2df6712d2965b3ea2e6a0e90fe5fb3d0a3.tar.gz
chromium_src-a755dc2df6712d2965b3ea2e6a0e90fe5fb3d0a3.tar.bz2
Implement FormManager::LabelForElement and use this to store the field labels.
BUG=none TEST=FormManagerTest.Labels Review URL: http://codereview.chromium.org/660154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_data.h')
-rw-r--r--webkit/glue/form_data.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/webkit/glue/form_data.h b/webkit/glue/form_data.h
index 02e0096..f1a7911 100644
--- a/webkit/glue/form_data.h
+++ b/webkit/glue/form_data.h
@@ -11,26 +11,19 @@
// Holds information about a form to be filled and/or submitted.
struct FormData {
- FormData() {}
- FormData(const FormData& data)
- : name(data.name),
- origin(data.origin),
- action(data.action),
- elements(data.elements),
- values(data.values),
- submit(data.submit) {}
-
// The name of the form.
string16 name;
// The URL (minus query parameters) containing the form
GURL origin;
// The action target of the form
GURL action;
- // A list of element names to be filled
+ // A vector of element labels.
+ std::vector<string16> labels;
+ // A vector of element names.
std::vector<string16> elements;
- // A list of element values to be filled
+ // A vector of element values.
std::vector<string16> values;
- // The name of the submit button to be used to submit (optional)
+ // The name of the submit button to be used to submit (optional).
string16 submit;
};