blob: 75d3d3a7fd10d63ef601cac9f137d52b3dd63140 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "components/autofill/core/browser/ui/accessory_sheet_data.h"
// Interface for the portions of type-specific manual filling controllers (e.g.,
// password, credit card) which interact with the generic
// ManualFillingController.
class AccessoryController {
virtual ~AccessoryController() = default;
// Triggered when a user selects an item for filling. This handler is
// responsible for propagating it so that it ultimately ends up in the form
// in the content area.
virtual void OnFillingTriggered(
const autofill::UserInfo::Field& selection) = 0;
// Triggered when a user selects an option.
virtual void OnOptionSelected(autofill::AccessoryAction selected_action) = 0;