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

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: Improve rebased code. 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void OnPreviewForm(int query_id, const FormData& form); 98 void OnPreviewForm(int query_id, const FormData& form);
99 99
100 // For external Autofill selection. 100 // For external Autofill selection.
101 void OnClearForm(); 101 void OnClearForm();
102 void OnClearPreviewedForm(); 102 void OnClearPreviewedForm();
103 void OnFillFieldWithValue(const base::string16& value); 103 void OnFillFieldWithValue(const base::string16& value);
104 void OnPreviewFieldWithValue(const base::string16& value); 104 void OnPreviewFieldWithValue(const base::string16& value);
105 void OnAcceptDataListSuggestion(const base::string16& value); 105 void OnAcceptDataListSuggestion(const base::string16& value);
106 void OnAcceptPasswordAutofillSuggestion(const base::string16& username, 106 void OnAcceptPasswordAutofillSuggestion(const base::string16& username,
107 const base::string16& password); 107 const base::string16& password);
108 void OnPreviewPasswordAutofillSuggestion(const base::string16& username,
109 const base::string16& password);
108 110
109 // Called when interactive autocomplete finishes. |message| is printed to 111 // Called when interactive autocomplete finishes. |message| is printed to
110 // the console if non-empty. 112 // the console if non-empty.
111 void OnRequestAutocompleteResult( 113 void OnRequestAutocompleteResult(
112 blink::WebFormElement::AutocompleteResult result, 114 blink::WebFormElement::AutocompleteResult result,
113 const base::string16& message, 115 const base::string16& message,
114 const FormData& form_data); 116 const FormData& form_data);
115 117
116 // Called when an autocomplete request succeeds or fails with the |result|. 118 // Called when an autocomplete request succeeds or fails with the |result|.
117 void FinishAutocompleteRequest( 119 void FinishAutocompleteRequest(
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 NoCancelOnSubframeNavigateAfterDone); 242 NoCancelOnSubframeNavigateAfterDone);
241 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest, 243 FRIEND_TEST_ALL_PREFIXES(RequestAutocompleteRendererTest,
242 InvokingTwiceOnlyShowsOnce); 244 InvokingTwiceOnlyShowsOnce);
243 245
244 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 246 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
245 }; 247 };
246 248
247 } // namespace autofill 249 } // namespace autofill
248 250
249 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 251 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698