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

Unified Diff: components/autofill/ios/browser/js_autofill_manager.h

Issue 1234193005: iOS full-form Autofill: Handle partially filled forms correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make comment clearer. Created 5 years, 5 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 | « no previous file | components/autofill/ios/browser/js_autofill_manager.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/ios/browser/js_autofill_manager.h
diff --git a/components/autofill/ios/browser/js_autofill_manager.h b/components/autofill/ios/browser/js_autofill_manager.h
index 53b7437eea3de3288ee9037d54a37e7498590a26..808ad389bc6f8805e62fcc8e318673ea7d6852be 100644
--- a/components/autofill/ios/browser/js_autofill_manager.h
+++ b/components/autofill/ios/browser/js_autofill_manager.h
@@ -47,13 +47,19 @@
completionHandler:(ProceduralBlock)completionHandler;
// Fills a number of fields in the same named form.
+// If |onlyFillEmpty| is true then only empty fields will be filled. Otherwise
+// all fields will be filled.
+// Field named |forceFillFieldName| will always be filled, regardless of value
+// of |onlyFillEmpty|. May be null.
// Applies Autofill CSS (i.e. yellow background) to filled elements if
// |styleElements| is true.
// |completionHandler| is called after the forms are filled. |completionHandler|
// cannot be nil.
- (void)fillForm:(NSString*)dataString
- styleElements:(BOOL)styleElements
- completionHandler:(ProceduralBlock)completionHandler;
+ onlyFillEmpty:(BOOL)onlyFillEmpty
+ forceFillFieldName:(NSString*)forceFillFieldName
+ styleElements:(BOOL)styleElements
+ completionHandler:(ProceduralBlock)completionHandler;
// Dispatches the autocomplete event to the form element with the given
// |formName|.
« no previous file with comments | « no previous file | components/autofill/ios/browser/js_autofill_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698