OLD | NEW |
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_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // Called when the Autofill popup is hidden. | 23 // Called when the Autofill popup is hidden. |
24 virtual void OnPopupHidden() = 0; | 24 virtual void OnPopupHidden() = 0; |
25 | 25 |
26 // Called when the Autofill popup recieves a click outside of the popup view | 26 // Called when the Autofill popup recieves a click outside of the popup view |
27 // to determine if the event should be reposted to the native window manager. | 27 // to determine if the event should be reposted to the native window manager. |
28 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) = 0; | 28 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) = 0; |
29 | 29 |
30 // Called when the autofill suggestion indicated by |identifier| has been | 30 // Called when the autofill suggestion indicated by |identifier| has been |
31 // temporarily selected (e.g., hovered). | 31 // temporarily selected (e.g., hovered). |
32 virtual void DidSelectSuggestion(int identifier) = 0; | 32 virtual void DidSelectSuggestion(const base::string16& value, |
| 33 int identifier) = 0; |
33 | 34 |
34 // Inform the delegate that a row in the popup has been chosen. | 35 // Inform the delegate that a row in the popup has been chosen. |
35 virtual void DidAcceptSuggestion(const base::string16& value, | 36 virtual void DidAcceptSuggestion(const base::string16& value, |
36 int identifier) = 0; | 37 int identifier) = 0; |
37 | 38 |
38 // Delete the described suggestion. | 39 // Delete the described suggestion. |
39 virtual void RemoveSuggestion(const base::string16& value, | 40 virtual void RemoveSuggestion(const base::string16& value, |
40 int identifier) = 0; | 41 int identifier) = 0; |
41 | 42 |
42 // Informs the delegate that the Autofill previewed form should be cleared. | 43 // Informs the delegate that the Autofill previewed form should be cleared. |
43 virtual void ClearPreviewedForm() = 0; | 44 virtual void ClearPreviewedForm() = 0; |
44 }; | 45 }; |
45 | 46 |
46 } // namespace autofill | 47 } // namespace autofill |
47 | 48 |
48 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ | 49 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ |
OLD | NEW |