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

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

Issue 1134793004: Autofill item deletion on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 7 months 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
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill_strings.grdp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 autofill { 10 namespace autofill {
(...skipping 10 matching lines...) Expand all
21 21
22 // Called when the autofill suggestion indicated by |identifier| has been 22 // Called when the autofill suggestion indicated by |identifier| has been
23 // temporarily selected (e.g., hovered). 23 // temporarily selected (e.g., hovered).
24 virtual void DidSelectSuggestion(const base::string16& value, 24 virtual void DidSelectSuggestion(const base::string16& value,
25 int identifier) = 0; 25 int identifier) = 0;
26 26
27 // Inform the delegate that a row in the popup has been chosen. 27 // Inform the delegate that a row in the popup has been chosen.
28 virtual void DidAcceptSuggestion(const base::string16& value, 28 virtual void DidAcceptSuggestion(const base::string16& value,
29 int identifier) = 0; 29 int identifier) = 0;
30 30
31 // Returns whether the given value can be deleted, and if true,
32 // fills out |title| and |body|.
33 virtual bool GetDeletionConfirmationText(const base::string16& value,
34 int identifier,
35 base::string16* title,
36 base::string16* body) = 0;
37
31 // Delete the described suggestion. Returns true if something was deleted, 38 // Delete the described suggestion. Returns true if something was deleted,
32 // or false if deletion is not allowed. 39 // or false if deletion is not allowed.
33 virtual bool RemoveSuggestion(const base::string16& value, 40 virtual bool RemoveSuggestion(const base::string16& value,
34 int identifier) = 0; 41 int identifier) = 0;
35 42
36 // Informs the delegate that the Autofill previewed form should be cleared. 43 // Informs the delegate that the Autofill previewed form should be cleared.
37 virtual void ClearPreviewedForm() = 0; 44 virtual void ClearPreviewedForm() = 0;
38 }; 45 };
39 46
40 } // namespace autofill 47 } // namespace autofill
41 48
42 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ 49 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698