| 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_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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Returns the background color of the row item according to its |index|, or | 58 // Returns the background color of the row item according to its |index|, or |
| 59 // transparent if the default popup background should be used. | 59 // transparent if the default popup background should be used. |
| 60 virtual SkColor GetBackgroundColorForRow(int index) const = 0; | 60 virtual SkColor GetBackgroundColorForRow(int index) const = 0; |
| 61 | 61 |
| 62 // Returns the index of the selected line. A line is "selected" when it is | 62 // Returns the index of the selected line. A line is "selected" when it is |
| 63 // hovered or has keyboard focus. | 63 // hovered or has keyboard focus. |
| 64 virtual int selected_line() const = 0; | 64 virtual int selected_line() const = 0; |
| 65 | 65 |
| 66 virtual const AutofillPopupLayoutModel& layout_model() const = 0; | 66 virtual const AutofillPopupLayoutModel& layout_model() const = 0; |
| 67 | 67 |
| 68 // Returns false for http sites in which case autofill popup will show "login |
| 69 // not secure" warning message. |
| 70 virtual bool IsTopLevelURLSecure() const = 0; |
| 71 |
| 68 protected: | 72 protected: |
| 69 ~AutofillPopupController() override {} | 73 ~AutofillPopupController() override {} |
| 70 }; | 74 }; |
| 71 | 75 |
| 72 } // namespace autofill | 76 } // namespace autofill |
| 73 | 77 |
| 74 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ | 78 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ |
| OLD | NEW |