| 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 13 matching lines...) Expand all Loading... |
| 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(int identifier) = 0; |
| 33 | 33 |
| 34 // Called when the Autocomplete suggestion has been temporarily selected |
| 35 // (e.g., hovered). |
| 36 virtual void DidSelectAutocompleteSuggestion(const base::string16& value) = 0; |
| 37 |
| 34 // Inform the delegate that a row in the popup has been chosen. | 38 // Inform the delegate that a row in the popup has been chosen. |
| 35 virtual void DidAcceptSuggestion(const base::string16& value, | 39 virtual void DidAcceptSuggestion(const base::string16& value, |
| 36 int identifier) = 0; | 40 int identifier) = 0; |
| 37 | 41 |
| 38 // Delete the described suggestion. | 42 // Delete the described suggestion. |
| 39 virtual void RemoveSuggestion(const base::string16& value, | 43 virtual void RemoveSuggestion(const base::string16& value, |
| 40 int identifier) = 0; | 44 int identifier) = 0; |
| 41 | 45 |
| 42 // Informs the delegate that the Autofill previewed form should be cleared. | 46 // Informs the delegate that the Autofill previewed form should be cleared. |
| 43 virtual void ClearPreviewedForm() = 0; | 47 virtual void ClearPreviewedForm() = 0; |
| 48 |
| 49 // Informs the delegate that the Autocomplete previewed field should be |
| 50 // cleared. |
| 51 virtual void ClearAutocompletePreviewedField() = 0; |
| 44 }; | 52 }; |
| 45 | 53 |
| 46 } // namespace autofill | 54 } // namespace autofill |
| 47 | 55 |
| 48 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ | 56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ |
| OLD | NEW |