OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Called by the view when the user changes the contents of a text field. | 120 // Called by the view when the user changes the contents of a text field. |
121 void UserEditedInput(const DetailInput* input, | 121 void UserEditedInput(const DetailInput* input, |
122 gfx::NativeView view, | 122 gfx::NativeView view, |
123 const gfx::Rect& content_bounds, | 123 const gfx::Rect& content_bounds, |
124 const string16& field_contents); | 124 const string16& field_contents); |
125 | 125 |
126 // Called when focus has changed position within the view. | 126 // Called when focus has changed position within the view. |
127 void FocusMoved(); | 127 void FocusMoved(); |
128 | 128 |
129 // AutofillPopupDelegate implementation. | 129 // AutofillPopupDelegate implementation. |
130 virtual void SelectAutofillSuggestion(int unique_id) OVERRIDE; | 130 virtual void DidSelectSuggestion(int identifier) OVERRIDE; |
131 virtual bool DidAcceptAutofillSuggestion(const string16& value, | 131 virtual void DidAcceptSuggestion(const string16& value, |
132 int unique_id, | 132 int identifier) OVERRIDE; |
133 unsigned index) OVERRIDE; | 133 virtual void RemoveSuggestion(const string16& value, |
134 virtual void RemoveAutocompleteEntry(const string16& value) OVERRIDE; | 134 int identifier) OVERRIDE; |
135 virtual void RemoveAutofillProfileOrCreditCard(int unique_id) OVERRIDE; | |
136 virtual void ClearPreviewedForm() OVERRIDE; | 135 virtual void ClearPreviewedForm() OVERRIDE; |
137 virtual void ControllerDestroyed() OVERRIDE; | 136 virtual void ControllerDestroyed() OVERRIDE; |
138 | 137 |
139 content::WebContents* web_contents() { return contents_; } | 138 content::WebContents* web_contents() { return contents_; } |
140 | 139 |
141 private: | 140 private: |
142 // Determines whether |input| and |field| match. | 141 // Determines whether |input| and |field| match. |
143 typedef base::Callback<bool(const DetailInput& input, | 142 typedef base::Callback<bool(const DetailInput& input, |
144 const AutofillField& field)> InputFieldComparator; | 143 const AutofillField& field)> InputFieldComparator; |
145 | 144 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 AutofillPopupControllerImpl* popup_controller_; | 221 AutofillPopupControllerImpl* popup_controller_; |
223 | 222 |
224 scoped_ptr<AutofillDialogView> view_; | 223 scoped_ptr<AutofillDialogView> view_; |
225 | 224 |
226 DISALLOW_COPY_AND_ASSIGN(AutofillDialogController); | 225 DISALLOW_COPY_AND_ASSIGN(AutofillDialogController); |
227 }; | 226 }; |
228 | 227 |
229 } // namespace autofill | 228 } // namespace autofill |
230 | 229 |
231 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 230 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |