#include "chrome/browser/ui/views/user_education/autofill_help_bubble_factory.h"
#include "chrome/browser/ui/views/autofill/popup/popup_base_view.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/user_education/browser_help_bubble_event_relay.h"
#include "components/user_education/views/help_bubble_view.h"
#include "ui/base/interaction/framework_specific_implementation.h"
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/view_utils.h"
#include "ui/views/widget/widget_delegate.h"
DEFINE_FRAMEWORK_SPECIFIC_METADATA(AutofillHelpBubbleFactory)
namespace {
views::Widget* GetBrowserWidgetFrom(const ui::TrackedElement* el) { … }
}
AutofillHelpBubbleFactory::AutofillHelpBubbleFactory(
const user_education::HelpBubbleDelegate* delegate)
: … { … }
AutofillHelpBubbleFactory::~AutofillHelpBubbleFactory() = default;
bool AutofillHelpBubbleFactory::CanBuildBubbleForTrackedElement(
const ui::TrackedElement* element) const { … }
std::unique_ptr<user_education::HelpBubble>
AutofillHelpBubbleFactory::CreateBubble(
ui::TrackedElement* element,
user_education::HelpBubbleParams params) { … }