summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/form_manager.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 /chrome/renderer/form_manager.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 'chrome/renderer/form_manager.h')
-rw-r--r--chrome/renderer/form_manager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/form_manager.h b/chrome/renderer/form_manager.h
index 209c93c..9e7abf8 100644
--- a/chrome/renderer/form_manager.h
+++ b/chrome/renderer/form_manager.h
@@ -75,6 +75,9 @@ class FormManager {
RequirementsMask requirements,
FormData* form);
+ // Returns the corresponding label for |element|.
+ static string16 LabelForElement(const WebKit::WebInputElement& element);
+
// The map of form elements.
WebFrameFormElementMap form_elements_map_;