#include "components/user_education/views/help_bubble_event_relay.h"
#include "base/functional/bind.h"
#include "components/user_education/views/help_bubble_view.h"
#include "ui/events/event.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/button_controller.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
namespace user_education {
namespace {
bool IsInButton(const gfx::Point& screen_coords, const views::Button* button) { … }
}
HelpBubbleEventRelay::HelpBubbleEventRelay() = default;
HelpBubbleEventRelay::~HelpBubbleEventRelay() = default;
void HelpBubbleEventRelay::Init(HelpBubbleView* help_bubble) { … }
views::Button* HelpBubbleEventRelay::GetButtonAt(
const gfx::Point& screen_coords) const { … }
bool HelpBubbleEventRelay::OnEvent(const ui::LocatedEvent& event,
const gfx::Point& screen_coords) { … }
void HelpBubbleEventRelay::OnConnectionLost() { … }
namespace internal {
MenuHelpBubbleEventProcessor::MenuHelpBubbleEventProcessor(
views::MenuItemView* menu_item)
: … { … }
MenuHelpBubbleEventProcessor::~MenuHelpBubbleEventProcessor() = default;
bool MenuHelpBubbleEventProcessor::OnEvent(const ui::LocatedEvent& event) { … }
bool MenuHelpBubbleEventProcessor::ShouldHelpBubbleProcessEvents() const { … }
bool MenuHelpBubbleEventProcessor::ShouldUnHoverOnMouseExit() const { … }
}
}