OLD | NEW |
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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const gfx::RectF& element_bounds, | 69 const gfx::RectF& element_bounds, |
70 base::i18n::TextDirection text_direction); | 70 base::i18n::TextDirection text_direction); |
71 ~AutofillPopupControllerImpl() override; | 71 ~AutofillPopupControllerImpl() override; |
72 | 72 |
73 // AutofillPopupViewDelegate implementation. | 73 // AutofillPopupViewDelegate implementation. |
74 void UpdateBoundsAndRedrawPopup() override; | 74 void UpdateBoundsAndRedrawPopup() override; |
75 void SetSelectionAtPoint(const gfx::Point& point) override; | 75 void SetSelectionAtPoint(const gfx::Point& point) override; |
76 bool AcceptSelectedLine() override; | 76 bool AcceptSelectedLine() override; |
77 void SelectionCleared() override; | 77 void SelectionCleared() override; |
78 void AcceptSuggestion(size_t index) override; | 78 void AcceptSuggestion(size_t index) override; |
79 bool IsWarning(size_t index) const override; | |
80 gfx::Rect popup_bounds() const override; | 79 gfx::Rect popup_bounds() const override; |
81 gfx::NativeView container_view() override; | 80 gfx::NativeView container_view() override; |
82 const gfx::RectF& element_bounds() const override; | 81 const gfx::RectF& element_bounds() const override; |
83 bool IsRTL() const override; | 82 bool IsRTL() const override; |
84 const std::vector<autofill::Suggestion> GetSuggestions() override; | 83 const std::vector<autofill::Suggestion> GetSuggestions() override; |
85 #if !defined(OS_ANDROID) | 84 #if !defined(OS_ANDROID) |
86 int GetElidedValueWidthForRow(size_t row) override; | 85 int GetElidedValueWidthForRow(size_t row) override; |
87 int GetElidedLabelWidthForRow(size_t row) override; | 86 int GetElidedLabelWidthForRow(size_t row) override; |
88 #endif | 87 #endif |
89 | 88 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // The line that is currently selected by the user. | 167 // The line that is currently selected by the user. |
169 // |kNoSelection| indicates that no line is currently selected. | 168 // |kNoSelection| indicates that no line is currently selected. |
170 int selected_line_; | 169 int selected_line_; |
171 | 170 |
172 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; | 171 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; |
173 }; | 172 }; |
174 | 173 |
175 } // namespace autofill | 174 } // namespace autofill |
176 | 175 |
177 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 176 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
OLD | NEW |