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 #include "components/autofill/core/browser/test_autofill_external_delegate.h" | 5 #include "components/autofill/core/browser/test_autofill_external_delegate.h" |
| 6 #include "third_party/WebKit/public/web/WebFormElement.h" |
6 | 7 |
7 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
8 | 9 |
9 namespace autofill { | 10 namespace autofill { |
10 | 11 |
11 void GenerateTestAutofillPopup( | 12 void GenerateTestAutofillPopup( |
12 AutofillExternalDelegate* autofill_external_delegate) { | 13 AutofillExternalDelegate* autofill_external_delegate) { |
13 int query_id = 1; | 14 int query_id = 1; |
14 FormData form; | 15 FormData form; |
15 FormFieldData field; | 16 FormFieldData field; |
16 field.is_focusable = true; | 17 field.is_focusable = true; |
17 field.should_autocomplete = true; | 18 field.should_autocomplete = true; |
18 gfx::RectF bounds(100.f, 100.f); | 19 gfx::RectF bounds(100.f, 100.f); |
19 autofill_external_delegate->OnQuery(query_id, form, field, bounds, false); | 20 blink::WebFormElement webformelement; |
| 21 autofill_external_delegate->OnQuery(query_id, form, field, |
| 22 webformelement, bounds, false); |
20 | 23 |
21 std::vector<base::string16> autofill_item; | 24 std::vector<base::string16> autofill_item; |
22 autofill_item.push_back(base::string16()); | 25 autofill_item.push_back(base::string16()); |
23 std::vector<int> autofill_id; | 26 std::vector<int> autofill_id; |
24 autofill_id.push_back(0); | 27 autofill_id.push_back(0); |
25 autofill_external_delegate->OnSuggestionsReturned( | 28 autofill_external_delegate->OnSuggestionsReturned( |
26 query_id, autofill_item, autofill_item, autofill_item, autofill_id); | 29 query_id, autofill_item, autofill_item, autofill_item, autofill_id); |
27 } | 30 } |
28 | 31 |
29 } // namespace autofill | 32 } // namespace autofill |
OLD | NEW |