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 "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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 base::i18n::TextDirection text_direction); | 69 base::i18n::TextDirection text_direction); |
70 ~AutofillPopupControllerImpl() override; | 70 ~AutofillPopupControllerImpl() override; |
71 | 71 |
72 // AutofillPopupController implementation. | 72 // AutofillPopupController implementation. |
73 void UpdateBoundsAndRedrawPopup() override; | 73 void UpdateBoundsAndRedrawPopup() override; |
74 void SetSelectionAtPoint(const gfx::Point& point) override; | 74 void SetSelectionAtPoint(const gfx::Point& point) override; |
75 bool AcceptSelectedLine() override; | 75 bool AcceptSelectedLine() override; |
76 void SelectionCleared() override; | 76 void SelectionCleared() override; |
77 void AcceptSuggestion(size_t index) override; | 77 void AcceptSuggestion(size_t index) override; |
78 int GetIconResourceID(const base::string16& resource_name) const override; | 78 int GetIconResourceID(const base::string16& resource_name) const override; |
79 bool CanDelete(size_t index) const override; | |
80 bool IsWarning(size_t index) const override; | 79 bool IsWarning(size_t index) const override; |
81 gfx::Rect GetRowBounds(size_t index) override; | 80 gfx::Rect GetRowBounds(size_t index) override; |
82 void SetPopupBounds(const gfx::Rect& bounds) override; | 81 void SetPopupBounds(const gfx::Rect& bounds) override; |
83 const gfx::Rect& popup_bounds() const override; | 82 const gfx::Rect& popup_bounds() const override; |
84 gfx::NativeView container_view() override; | 83 gfx::NativeView container_view() override; |
85 const gfx::RectF& element_bounds() const override; | 84 const gfx::RectF& element_bounds() const override; |
86 bool IsRTL() const override; | 85 bool IsRTL() const override; |
87 | 86 |
88 size_t GetLineCount() const override; | 87 size_t GetLineCount() const override; |
89 const autofill::Suggestion& GetSuggestionAt(size_t row) const override; | 88 const autofill::Suggestion& GetSuggestionAt(size_t row) const override; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // The line that is currently selected by the user. | 189 // The line that is currently selected by the user. |
191 // |kNoSelection| indicates that no line is currently selected. | 190 // |kNoSelection| indicates that no line is currently selected. |
192 int selected_line_; | 191 int selected_line_; |
193 | 192 |
194 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; | 193 base::WeakPtrFactory<AutofillPopupControllerImpl> weak_ptr_factory_; |
195 }; | 194 }; |
196 | 195 |
197 } // namespace autofill | 196 } // namespace autofill |
198 | 197 |
199 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ | 198 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
OLD | NEW |