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

Unified Diff: webkit/glue/password_autocomplete_listener.h

Issue 279001: Move autofill related WebView{Delegate} methods into the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « webkit/glue/editor_client_impl.cc ('k') | webkit/glue/password_autocomplete_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/password_autocomplete_listener.h
===================================================================
--- webkit/glue/password_autocomplete_listener.h (revision 29209)
+++ webkit/glue/password_autocomplete_listener.h (working copy)
@@ -25,11 +25,11 @@
explicit HTMLInputDelegate(WebCore::HTMLInputElement* element);
virtual ~HTMLInputDelegate();
- virtual void SetValue(const std::wstring& value);
+ virtual void SetValue(const string16& value);
virtual void SetSelectionRange(size_t start, size_t end);
virtual void OnFinishedAutocompleting();
virtual void RefreshAutofillPopup(
- const std::vector<std::wstring>& suggestions,
+ const std::vector<string16>& suggestions,
int default_suggestion_index);
private:
@@ -51,9 +51,9 @@
}
virtual void OnBlur(WebCore::HTMLInputElement* element,
- const std::wstring& user_input);
+ const string16& user_input);
virtual void OnInlineAutocompleteNeeded(WebCore::HTMLInputElement* element,
- const std::wstring& user_input,
+ const string16& user_input,
bool backspace_or_delete,
bool with_suggestion_popup);
@@ -61,13 +61,13 @@
// Check if the input string resembles a potential matching login
// (username/password) and if so, match them up by autocompleting the edit
// delegates.
- bool TryToMatch(const std::wstring& input,
- const std::wstring& username,
- const std::wstring& password);
+ bool TryToMatch(const string16& input,
+ const string16& username,
+ const string16& password);
// Scan |data_| for prefix matches of |input| and add each to |suggestions|.
- void GetSuggestions(const std::wstring& input,
- std::vector<std::wstring>* suggestions);
+ void GetSuggestions(const string16& input,
+ std::vector<string16>* suggestions);
// Access to password field to autocomplete on blur/username updates.
scoped_ptr<HTMLInputDelegate> password_delegate_;
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | webkit/glue/password_autocomplete_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698