#ifndef CHROME_BROWSER_UI_VIEWS_USER_EDUCATION_BROWSER_HELP_BUBBLE_EVENT_RELAY_H_
#define CHROME_BROWSER_UI_VIEWS_USER_EDUCATION_BROWSER_HELP_BUBBLE_EVENT_RELAY_H_
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "build/build_config.h"
#include "components/user_education/views/help_bubble_event_relay.h"
#include "components/user_education/views/help_bubble_view.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_observer.h"
#if USE_AURA
#include "ui/events/event_handler.h"
#endif
class WindowHelpBubbleEventRelay : public user_education::HelpBubbleEventRelay,
public views::WidgetObserver { … };
#if USE_AURA
class WindowHelpBubbleEventRelayAura : public WindowHelpBubbleEventRelay,
public ui::EventHandler { … };
#elif BUILDFLAG(IS_MAC)
class WindowHelpBubbleEventRelayMac : public WindowHelpBubbleEventRelay {
public:
explicit WindowHelpBubbleEventRelayMac(views::Widget* source_widget);
~WindowHelpBubbleEventRelayMac() override;
void Release() override;
private:
class Delegate;
std::unique_ptr<Delegate> delegate_;
};
#endif
std::unique_ptr<WindowHelpBubbleEventRelay> CreateWindowHelpBubbleEventRelay(
views::Widget* source_widget);
#endif