blob: 73d975d21149d8c4a5090fd88da8a13d5ad5a822 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_BUBBLE_BASE_H_
#define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_BUBBLE_BASE_H_
namespace autofill {
// TODO(@vishwasuppoor): Rename to be platform-agnostic (crbug.com/1322580).
// The cross-platform interface which displays the bubble for autofill bubbles.
// This object is responsible for its own lifetime.
class AutofillBubbleBase {
public:
virtual ~AutofillBubbleBase() = default;
// Called from controller to shut down the bubble and prevent any further
// action.
virtual void Hide() = 0;
// Called from controller to check if the mouse is hovering over the view.
virtual bool IsMouseHovered() const = 0;
};
} // namespace autofill
#endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_BUBBLE_BASE_H_