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_AUTOFILL_AUTOFILL_POPUP_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class KeyboardListener; | 11 class KeyboardListener; |
12 } | 12 } |
13 | 13 |
14 // An interface for interaction with AutofillPopupController. Will be notified | 14 // An interface for interaction with AutofillPopupController. Will be notified |
15 // of events by the controller. | 15 // of events by the controller. |
16 class AutofillPopupDelegate { | 16 class AutofillPopupDelegate { |
(...skipping 13 matching lines...) Expand all Loading... |
30 // Inform the delegate that a row in the popup has been chosen. | 30 // Inform the delegate that a row in the popup has been chosen. |
31 virtual void DidAcceptSuggestion(const string16& value, int identifier) = 0; | 31 virtual void DidAcceptSuggestion(const string16& value, int identifier) = 0; |
32 | 32 |
33 // Delete the described suggestion. | 33 // Delete the described suggestion. |
34 virtual void RemoveSuggestion(const string16& value, int identifier) = 0; | 34 virtual void RemoveSuggestion(const string16& value, int identifier) = 0; |
35 | 35 |
36 // Informs the delegate that the Autofill previewed form should be cleared. | 36 // Informs the delegate that the Autofill previewed form should be cleared. |
37 virtual void ClearPreviewedForm() = 0; | 37 virtual void ClearPreviewedForm() = 0; |
38 }; | 38 }; |
39 | 39 |
40 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_DELEGATE_H_ | 40 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ |
OLD | NEW |