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

Side by Side Diff: components/autofill/content/renderer/autofill_agent.h

Issue 208453002: Add "previewing on hover" support for password field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update code as per further review comments. Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const std::vector<FormDataPredictions>& forms); 95 const std::vector<FormDataPredictions>& forms);
96 void OnFillForm(int query_id, const FormData& form); 96 void OnFillForm(int query_id, const FormData& form);
97 void OnPreviewForm(int query_id, const FormData& form); 97 void OnPreviewForm(int query_id, const FormData& form);
98 98
99 // For external Autofill selection. 99 // For external Autofill selection.
100 void OnClearForm(); 100 void OnClearForm();
101 void OnClearPreviewedForm(); 101 void OnClearPreviewedForm();
102 void OnFillFieldWithValue(const base::string16& value); 102 void OnFillFieldWithValue(const base::string16& value);
103 void OnPreviewFieldWithValue(const base::string16& value); 103 void OnPreviewFieldWithValue(const base::string16& value);
104 void OnAcceptDataListSuggestion(const base::string16& value); 104 void OnAcceptDataListSuggestion(const base::string16& value);
105 void OnAcceptPasswordAutofillSuggestion(const base::string16& username, 105 void OnFillPasswordSuggestion(const base::string16& username,
106 const base::string16& password); 106 const base::string16& password);
107 void OnPreviewPasswordSuggestion(const base::string16& username,
108 const base::string16& password);
107 109
108 // Called when interactive autocomplete finishes. |message| is printed to 110 // Called when interactive autocomplete finishes. |message| is printed to
109 // the console if non-empty. 111 // the console if non-empty.
110 void OnRequestAutocompleteResult( 112 void OnRequestAutocompleteResult(
111 blink::WebFormElement::AutocompleteResult result, 113 blink::WebFormElement::AutocompleteResult result,
112 const base::string16& message, 114 const base::string16& message,
113 const FormData& form_data); 115 const FormData& form_data);
114 116
115 // Called when an autocomplete request succeeds or fails with the |result|. 117 // Called when an autocomplete request succeeds or fails with the |result|.
116 void FinishAutocompleteRequest( 118 void FinishAutocompleteRequest(
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 NoCancelOnSubframeNavigateAfterDone); 246 NoCancelOnSubframeNavigateAfterDone);
245 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, 247 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest,
246 InvokingTwiceOnlyShowsOnce); 248 InvokingTwiceOnlyShowsOnce);
247 249
248 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 250 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
249 }; 251 };
250 252
251 } // namespace autofill 253 } // namespace autofill
252 254
253 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 255 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « components/autofill/content/common/autofill_messages.h ('k') | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698