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

Side by Side Diff: ios/chrome/browser/passwords/js_password_manager.h

Issue 2817943002: Fully deprecate core.js. Moved last method to error.js. (Closed)
Patch Set: Tweak language Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/ui/contextual_search/resources/contextualsearch.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_PASSWORDS_JS_PASSWORD_MANAGER_H_ 5 #ifndef IOS_CHROME_BROWSER_PASSWORDS_JS_PASSWORD_MANAGER_H_
6 #define IOS_CHROME_BROWSER_PASSWORDS_JS_PASSWORD_MANAGER_H_ 6 #define IOS_CHROME_BROWSER_PASSWORDS_JS_PASSWORD_MANAGER_H_
7 7
8 #include "base/ios/block_types.h" 8 #include "base/ios/block_types.h"
9 #import "ios/web/public/web_state/js/crw_js_injection_manager.h" 9 #import "ios/web/public/web_state/js/crw_js_injection_manager.h"
10 10
11 @class CRWJSInjectionReceiver; 11 @class CRWJSInjectionReceiver;
12 12
13 // Loads the JavaScript file, password_controller.js, which contains password 13 // Loads the JavaScript file, password_controller.js, which contains password
14 // form parsing and autofill functions. It will be evaluated on a page that 14 // form parsing and autofill functions. It will be evaluated on a page that
15 // is known to have at least one password form (see hasPasswordForms in 15 // is known to have at least one password form (see hasPasswordField_ in
16 // core.js.) It returns contents of those password forms and also 16 // password_controller.js) It returns contents of those password forms and also
17 // registers functions that are later used to autofill them. 17 // registers functions that are later used to autofill them.
18 @interface JsPasswordManager : CRWJSInjectionManager 18 @interface JsPasswordManager : CRWJSInjectionManager
19 19
20 // Finds any password forms on the web page. 20 // Finds any password forms on the web page.
21 // |completionHandler| is then called with the JSON string result (which can 21 // |completionHandler| is then called with the JSON string result (which can
22 // be a zero-length string if there was an error). |completionHandler| cannot be 22 // be a zero-length string if there was an error). |completionHandler| cannot be
23 // nil. 23 // nil.
24 // For example the JSON string for a form with a single password field is: 24 // For example the JSON string for a form with a single password field is:
25 // [{"action":null,"method":null,"usernameElement":"","usernameValue":""," 25 // [{"action":null,"method":null,"usernameElement":"","usernameValue":"","
26 // passwords":[{"element":"","value":"asd"}]}] 26 // passwords":[{"element":"","value":"asd"}]}]
(...skipping 29 matching lines...) Expand all
56 // Fills all password fields in the form identified by |formName| with 56 // Fills all password fields in the form identified by |formName| with
57 // |password| and invokes |completionHandler| with true if any fields were 57 // |password| and invokes |completionHandler| with true if any fields were
58 // filled. 58 // filled.
59 - (void)fillPasswordForm:(NSString*)formName 59 - (void)fillPasswordForm:(NSString*)formName
60 withGeneratedPassword:(NSString*)password 60 withGeneratedPassword:(NSString*)password
61 completionHandler:(void (^)(BOOL))completionHandler; 61 completionHandler:(void (^)(BOOL))completionHandler;
62 62
63 @end 63 @end
64 64
65 #endif // IOS_CHROME_BROWSER_PASSWORDS_JS_PASSWORD_MANAGER_H_ 65 #endif // IOS_CHROME_BROWSER_PASSWORDS_JS_PASSWORD_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/ui/contextual_search/resources/contextualsearch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698