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

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_controller.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
OLDNEW
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_POPUP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual gfx::Rect GetRowBounds(size_t index) = 0; 46 virtual gfx::Rect GetRowBounds(size_t index) = 0;
47 47
48 // Returns the number of lines of data that there are. 48 // Returns the number of lines of data that there are.
49 virtual size_t GetLineCount() const = 0; 49 virtual size_t GetLineCount() const = 0;
50 50
51 // Returns the suggestion or pre-elided string at the given row index. 51 // Returns the suggestion or pre-elided string at the given row index.
52 virtual const autofill::Suggestion& GetSuggestionAt(size_t row) const = 0; 52 virtual const autofill::Suggestion& GetSuggestionAt(size_t row) const = 0;
53 virtual const base::string16& GetElidedValueAt(size_t row) const = 0; 53 virtual const base::string16& GetElidedValueAt(size_t row) const = 0;
54 virtual const base::string16& GetElidedLabelAt(size_t row) const = 0; 54 virtual const base::string16& GetElidedLabelAt(size_t row) const = 0;
55 55
56 // Returns whether the item at |list_index| can be removed. If so, fills
57 // out |title| and |body| (when non-null) with relevant user-facing text.
58 virtual bool GetRemovalConfirmationText(int index,
59 base::string16* title,
60 base::string16* body) = 0;
61
62 // Removes the suggestion at the given index.
63 virtual bool RemoveSuggestion(int index) = 0;
64
56 #if !defined(OS_ANDROID) 65 #if !defined(OS_ANDROID)
57 // The same font can vary based on the type of data it is showing, 66 // The same font can vary based on the type of data it is showing,
58 // so we need to know the row. 67 // so we need to know the row.
59 virtual const gfx::FontList& GetValueFontListForRow(size_t index) const = 0; 68 virtual const gfx::FontList& GetValueFontListForRow(size_t index) const = 0;
60 virtual const gfx::FontList& GetLabelFontList() const = 0; 69 virtual const gfx::FontList& GetLabelFontList() const = 0;
61 #endif 70 #endif
62 71
63 // Returns the index of the selected line. A line is "selected" when it is 72 // Returns the index of the selected line. A line is "selected" when it is
64 // hovered or has keyboard focus. 73 // hovered or has keyboard focus.
65 virtual int selected_line() const = 0; 74 virtual int selected_line() const = 0;
66 75
67 protected: 76 protected:
68 ~AutofillPopupController() override {} 77 ~AutofillPopupController() override {}
69 }; 78 };
70 79
71 } // namespace autofill 80 } // namespace autofill
72 81
73 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 82 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698