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

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.h

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 size_t GetLineCount() const override; 87 size_t GetLineCount() const override;
88 const autofill::Suggestion& GetSuggestionAt(size_t row) const override; 88 const autofill::Suggestion& GetSuggestionAt(size_t row) const override;
89 const base::string16& GetElidedValueAt(size_t row) const override; 89 const base::string16& GetElidedValueAt(size_t row) const override;
90 const base::string16& GetElidedLabelAt(size_t row) const override; 90 const base::string16& GetElidedLabelAt(size_t row) const override;
91 bool GetRemovalConfirmationText(int list_index, 91 bool GetRemovalConfirmationText(int list_index,
92 base::string16* title, 92 base::string16* title,
93 base::string16* body) override; 93 base::string16* body) override;
94 bool RemoveSuggestion(int list_index) override; 94 bool RemoveSuggestion(int list_index) override;
95 #if !defined(OS_ANDROID) 95 #if !defined(OS_ANDROID)
96 const gfx::FontList& GetValueFontListForRow(size_t index) const override; 96 const gfx::FontList& GetValueFontListForRow(size_t index) const override;
97 #endif
97 const gfx::FontList& GetLabelFontList() const override; 98 const gfx::FontList& GetLabelFontList() const override;
98 #endif
99 int selected_line() const override; 99 int selected_line() const override;
100 100
101 content::WebContents* web_contents(); 101 content::WebContents* web_contents();
102 102
103 // Change which line is currently selected by the user. 103 // Change which line is currently selected by the user.
104 void SetSelectedLine(int selected_line); 104 void SetSelectedLine(int selected_line);
105 105
106 // Increase the selected line by 1, properly handling wrapping. 106 // Increase the selected line by 1, properly handling wrapping.
107 void SelectNextLine(); 107 void SelectNextLine();
108 108
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 std::vector<autofill::Suggestion> suggestions_; 178 std::vector<autofill::Suggestion> suggestions_;
179 179
180 // Elided values and labels corresponding to the suggestions_ vector to 180 // Elided values and labels corresponding to the suggestions_ vector to
181 // ensure that it fits on the screen. 181 // ensure that it fits on the screen.
182 std::vector<base::string16> elided_values_; 182 std::vector<base::string16> elided_values_;
183 std::vector<base::string16> elided_labels_; 183 std::vector<base::string16> elided_labels_;
184 184
185 #if !defined(OS_ANDROID) 185 #if !defined(OS_ANDROID)
186 // The fonts for the popup text. 186 // The fonts for the popup text.
187 gfx::FontList value_font_list_; 187 gfx::FontList value_font_list_;
188 gfx::FontList label_font_list_;
189 gfx::FontList warning_font_list_; 188 gfx::FontList warning_font_list_;
190 gfx::FontList title_font_list_; 189 gfx::FontList title_font_list_;
191 #endif 190 #endif
191 gfx::FontList label_font_list_;
192 192
193 // The line that is currently selected by the user. 193 // The line that is currently selected by the user.
194 // |kNoSelection| indicates that no line is currently selected. 194 // |kNoSelection| indicates that no line is currently selected.
195 int selected_line_; 195 int selected_line_;
196 196
197 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; 197 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_;
198 }; 198 };
199 199
200 } // namespace autofill 200 } // namespace autofill
201 201
202 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ 202 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698