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

Unified Diff: chrome/renderer/form_manager.h

Issue 5080001: Autofill select field text should be captured not selection option value (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: 80 col. Created 10 years, 1 month 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 | « no previous file | chrome/renderer/form_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/form_manager.h
diff --git a/chrome/renderer/form_manager.h b/chrome/renderer/form_manager.h
index b50fc552adb31c9afd18f334aeb0903e199675c7..4371287f88eb4230fb02873a52b0741faacec638 100644
--- a/chrome/renderer/form_manager.h
+++ b/chrome/renderer/form_manager.h
@@ -36,9 +36,15 @@ class FormManager {
// A bit field mask to extract data from WebFormControlElement.
enum ExtractMask {
- EXTRACT_NONE = 0,
- EXTRACT_VALUE = 1 << 0, // Extract value from WebFormControlElement.
- EXTRACT_OPTIONS = 1 << 1, // Extract options from WebFormControlElement.
+ EXTRACT_NONE = 0,
+ EXTRACT_VALUE = 1 << 0, // Extract value from WebFormControlElement.
+ EXTRACT_OPTION_TEXT = 1 << 1, // Extract option text from
+ // WebFormSelectElement. Only valid when
+ // |EXTRACT_VALUE| is set.
+ // This is used for form submission where
+ // human readable value is captured.
+ EXTRACT_OPTIONS = 1 << 2, // Extract options from
+ // WebFormControlElement.
};
FormManager();
« no previous file with comments | « no previous file | chrome/renderer/form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698