OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 std::vector<base::string16>* icons, | 104 std::vector<base::string16>* icons, |
105 std::vector<int>* unique_ids); | 105 std::vector<int>* unique_ids); |
106 | 106 |
107 // Insert the data list values at the start of the given list, including | 107 // Insert the data list values at the start of the given list, including |
108 // any required separators. | 108 // any required separators. |
109 void InsertDataListValues(std::vector<base::string16>* values, | 109 void InsertDataListValues(std::vector<base::string16>* values, |
110 std::vector<base::string16>* labels, | 110 std::vector<base::string16>* labels, |
111 std::vector<base::string16>* icons, | 111 std::vector<base::string16>* icons, |
112 std::vector<int>* unique_ids); | 112 std::vector<int>* unique_ids); |
113 | 113 |
| 114 #if defined(OS_MACOSX) |
| 115 // Reissues the most recent query, which will reopen the autofill popup. |
| 116 void ReissueQuery(); |
| 117 #endif |
| 118 |
114 AutofillManager* manager_; // weak. | 119 AutofillManager* manager_; // weak. |
115 | 120 |
116 // Provides driver-level context to the shared code of the component. Must | 121 // Provides driver-level context to the shared code of the component. Must |
117 // outlive this object. | 122 // outlive this object. |
118 AutofillDriver* driver_; // weak | 123 AutofillDriver* driver_; // weak |
119 | 124 |
120 // The ID of the last request sent for form field Autofill. Used to ignore | 125 // The ID of the last request sent for form field Autofill. Used to ignore |
121 // out of date responses. | 126 // out of date responses. |
122 int query_id_; | 127 int query_id_; |
123 | 128 |
(...skipping 11 matching lines...) Expand all Loading... |
135 bool has_suggestion_; | 140 bool has_suggestion_; |
136 | 141 |
137 // Have we already shown Autofill suggestions for the field the user is | 142 // Have we already shown Autofill suggestions for the field the user is |
138 // currently editing? Used to keep track of state for metrics logging. | 143 // currently editing? Used to keep track of state for metrics logging. |
139 bool has_shown_popup_for_current_edit_; | 144 bool has_shown_popup_for_current_edit_; |
140 | 145 |
141 // The current data list values. | 146 // The current data list values. |
142 std::vector<base::string16> data_list_values_; | 147 std::vector<base::string16> data_list_values_; |
143 std::vector<base::string16> data_list_labels_; | 148 std::vector<base::string16> data_list_labels_; |
144 | 149 |
| 150 #if defined(OS_MACOSX) |
| 151 // If this property is set, then the autofill popup is immediately |
| 152 // redisplayed when the text field loses focus. |
| 153 bool redisplay_popop_on_focus_lost_; |
| 154 #endif |
| 155 |
145 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 156 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
146 | 157 |
147 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
148 }; | 159 }; |
149 | 160 |
150 } // namespace autofill | 161 } // namespace autofill |
151 | 162 |
152 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 163 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
OLD | NEW |