#include "chrome/browser/ui/views/user_education/browser_help_bubble.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "components/user_education/webui/help_bubble_handler.h"
#include "components/user_education/webui/help_bubble_webui.h"
#include "components/user_education/webui/tracked_element_webui.h"
#include "ui/base/interaction/framework_specific_implementation.h"
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/view_utils.h"
BrowserHelpBubbleDelegate::BrowserHelpBubbleDelegate() = default;
BrowserHelpBubbleDelegate::~BrowserHelpBubbleDelegate() = default;
std::vector<ui::Accelerator>
BrowserHelpBubbleDelegate::GetPaneNavigationAccelerators(
ui::TrackedElement* anchor_element) const { … }
int BrowserHelpBubbleDelegate::GetTitleTextContext() const { … }
int BrowserHelpBubbleDelegate::GetBodyTextContext() const { … }
ui::ColorId BrowserHelpBubbleDelegate::GetHelpBubbleBackgroundColorId() const { … }
ui::ColorId BrowserHelpBubbleDelegate::GetHelpBubbleForegroundColorId() const { … }
ui::ColorId
BrowserHelpBubbleDelegate::GetHelpBubbleDefaultButtonBackgroundColorId() const { … }
ui::ColorId
BrowserHelpBubbleDelegate::GetHelpBubbleDefaultButtonForegroundColorId() const { … }
ui::ColorId BrowserHelpBubbleDelegate::GetHelpBubbleButtonBorderColorId()
const { … }
ui::ColorId BrowserHelpBubbleDelegate::GetHelpBubbleCloseButtonInkDropColorId()
const { … }
TabWebUIHelpBubbleFactoryBrowser::TabWebUIHelpBubbleFactoryBrowser() = default;
TabWebUIHelpBubbleFactoryBrowser::~TabWebUIHelpBubbleFactoryBrowser() = default;
std::unique_ptr<user_education::HelpBubble>
TabWebUIHelpBubbleFactoryBrowser::CreateBubble(
ui::TrackedElement* element,
user_education::HelpBubbleParams params) { … }
DEFINE_FRAMEWORK_SPECIFIC_METADATA(TabWebUIHelpBubbleFactoryBrowser)
FloatingWebUIHelpBubbleFactoryBrowser::FloatingWebUIHelpBubbleFactoryBrowser(
const user_education::HelpBubbleDelegate* delegate)
: … { … }
FloatingWebUIHelpBubbleFactoryBrowser::
~FloatingWebUIHelpBubbleFactoryBrowser() = default;
bool FloatingWebUIHelpBubbleFactoryBrowser::CanBuildBubbleForTrackedElement(
const ui::TrackedElement* element) const { … }
DEFINE_FRAMEWORK_SPECIFIC_METADATA(FloatingWebUIHelpBubbleFactoryBrowser)