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

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

Issue 1137403002: Add upstream bits necessary for iOS card unmask prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add clearActiveElement to autofill_controller.js Created 5 years, 7 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
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 4ac923effc59dce81977da6088291d1c42f8b0ad..c6769b69d997d7c63944fb8d7b3d886eb7dc428f 100644
--- a/components/autofill/ios/browser/js_autofill_manager.h
+++ b/components/autofill/ios/browser/js_autofill_manager.h
@@ -23,8 +23,17 @@
minimumRequiredFieldsCount:(NSUInteger)requiredFieldsCount
completionHandler:(void (^)(NSString*))completionHandler;
+// Stores the current active element. This is used to make the element active
+// again in case the web view loses focus when a dialog is presented over it.
+- (void)storeActiveElement;
+
+// Clears the current active element.
+- (void)clearActiveElement;
+
// Fills the data in JSON string |dataString| into the active form field, then
-// executes the |completionHandler|.
+// executes the |completionHandler|. The active form field is either
+// document.activeElement or the field stored by a call to storeActiveElement.
+// non-null.
- (void)fillActiveFormField:(NSString*)dataString
completionHandler:(ProceduralBlock)completionHandler;

Powered by Google App Engine
This is Rietveld 408576698