ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / components / autofill / core / browser / test_autofill_external_delegate.cc
blob348dd42e8599ff1e4678df7b7123b0b4fa775929
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
3 // found in the LICENSE file.
5 #include "components/autofill/core/browser/test_autofill_external_delegate.h"
7 #include "ui/gfx/geometry/rect.h"
9 namespace autofill {
11 void GenerateTestAutofillPopup(
12 AutofillExternalDelegate* autofill_external_delegate) {
13 int query_id = 1;
14 FormData form;
15 FormFieldData field;
16 field.is_focusable = true;
17 field.should_autocomplete = true;
18 gfx::RectF bounds(100.f, 100.f);
19 autofill_external_delegate->OnQuery(query_id, form, field, bounds, false);
21 std::vector<Suggestion> suggestions;
22 suggestions.push_back(Suggestion());
23 autofill_external_delegate->OnSuggestionsReturned(query_id, suggestions);
26 } // namespace autofill