| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // The actual bounds of the popup. | 61 // The actual bounds of the popup. |
| 62 virtual const gfx::Rect& popup_bounds() const = 0; | 62 virtual const gfx::Rect& popup_bounds() const = 0; |
| 63 | 63 |
| 64 // The view that the form field element sits in. | 64 // The view that the form field element sits in. |
| 65 virtual gfx::NativeView container_view() const = 0; | 65 virtual gfx::NativeView container_view() const = 0; |
| 66 | 66 |
| 67 // The bounds of the form field element (screen coordinates). | 67 // The bounds of the form field element (screen coordinates). |
| 68 virtual const gfx::RectF& element_bounds() const = 0; | 68 virtual const gfx::RectF& element_bounds() const = 0; |
| 69 | 69 |
| 70 // If the current popup should be displayed in RTL mode. |
| 71 virtual bool IsRTL() const = 0; |
| 72 |
| 70 // TODO(csharp): The names, subtexts and icon getters can probably be adjusted | 73 // TODO(csharp): The names, subtexts and icon getters can probably be adjusted |
| 71 // to take in the row index and return a single element, instead of the | 74 // to take in the row index and return a single element, instead of the |
| 72 // whole vector. | 75 // whole vector. |
| 73 // The main labels for each autofill item. | 76 // The main labels for each autofill item. |
| 74 virtual const std::vector<string16>& names() const = 0; | 77 virtual const std::vector<string16>& names() const = 0; |
| 75 | 78 |
| 76 // Smaller labels for each autofill item. | 79 // Smaller labels for each autofill item. |
| 77 virtual const std::vector<string16>& subtexts() const = 0; | 80 virtual const std::vector<string16>& subtexts() const = 0; |
| 78 | 81 |
| 79 // A string which identifies the icon to be shown for each autofill item. | 82 // A string which identifies the icon to be shown for each autofill item. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 93 // hovered or has keyboard focus. | 96 // hovered or has keyboard focus. |
| 94 virtual int selected_line() const = 0; | 97 virtual int selected_line() const = 0; |
| 95 | 98 |
| 96 protected: | 99 protected: |
| 97 virtual ~AutofillPopupController() {} | 100 virtual ~AutofillPopupController() {} |
| 98 }; | 101 }; |
| 99 | 102 |
| 100 } // namespace autofill | 103 } // namespace autofill |
| 101 | 104 |
| 102 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ | 105 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ |
| OLD | NEW |