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

Side by Side Diff: components/autofill/core/browser/autofill_client.h

Issue 492043003: Fill on account select in the password manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CORE_BROWSER_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and 83 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and
84 // |identifiers| for the element at |element_bounds|. |delegate| will be 84 // |identifiers| for the element at |element_bounds|. |delegate| will be
85 // notified of popup events. 85 // notified of popup events.
86 virtual void ShowAutofillPopup( 86 virtual void ShowAutofillPopup(
87 const gfx::RectF& element_bounds, 87 const gfx::RectF& element_bounds,
88 base::i18n::TextDirection text_direction, 88 base::i18n::TextDirection text_direction,
89 const std::vector<base::string16>& values, 89 const std::vector<base::string16>& values,
90 const std::vector<base::string16>& labels, 90 const std::vector<base::string16>& labels,
91 const std::vector<base::string16>& icons, 91 const std::vector<base::string16>& icons,
92 const std::vector<int>& identifiers, 92 const std::vector<int>& identifiers,
93 const base::string16& title,
93 base::WeakPtr<AutofillPopupDelegate> delegate) = 0; 94 base::WeakPtr<AutofillPopupDelegate> delegate) = 0;
94 95
95 // Update the data list values shown by the Autofill popup, if visible. 96 // Update the data list values shown by the Autofill popup, if visible.
96 virtual void UpdateAutofillPopupDataListValues( 97 virtual void UpdateAutofillPopupDataListValues(
97 const std::vector<base::string16>& values, 98 const std::vector<base::string16>& values,
98 const std::vector<base::string16>& labels) = 0; 99 const std::vector<base::string16>& labels) = 0;
99 100
100 // Hide the Autofill popup if one is currently showing. 101 // Hide the Autofill popup if one is currently showing.
101 virtual void HideAutofillPopup() = 0; 102 virtual void HideAutofillPopup() = 0;
102 103
103 // Whether the Autocomplete feature of Autofill should be enabled. 104 // Whether the Autocomplete feature of Autofill should be enabled.
104 virtual bool IsAutocompleteEnabled() = 0; 105 virtual bool IsAutocompleteEnabled() = 0;
105 106
106 // Pass the form structures to the password generation manager to detect 107 // Pass the form structures to the password generation manager to detect
107 // account creation forms. 108 // account creation forms.
108 virtual void DetectAccountCreationForms( 109 virtual void DetectAccountCreationForms(
109 const std::vector<autofill::FormStructure*>& forms) = 0; 110 const std::vector<autofill::FormStructure*>& forms) = 0;
110 111
111 // Inform the client that the field has been filled. 112 // Inform the client that the field has been filled.
112 virtual void DidFillOrPreviewField( 113 virtual void DidFillOrPreviewField(
113 const base::string16& autofilled_value, 114 const base::string16& autofilled_value,
114 const base::string16& profile_full_name) = 0; 115 const base::string16& profile_full_name) = 0;
115 }; 116 };
116 117
117 } // namespace autofill 118 } // namespace autofill
118 119
119 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 120 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698