#include "chrome/browser/ui/views/toolbar/reload_button.h"
#include <stddef.h>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/command_updater.h"
#include "chrome/browser/external_protocol/external_protocol_handler.h"
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/view_ids.h"
#include "chrome/grit/generated_resources.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/base/pointer/touch_ui_controller.h"
#include "ui/base/theme_provider.h"
#include "ui/base/ui_base_features.h"
#include "ui/base/window_open_disposition.h"
#include "ui/base/window_open_disposition_utils.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/metrics.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
ReloadButton::ReloadButton(CommandUpdater* command_updater)
: … { … }
ReloadButton::~ReloadButton() { … }
void ReloadButton::ChangeMode(Mode mode, bool force) { … }
void ReloadButton::SetVectorIconsForMode(Mode mode,
const gfx::VectorIcon& icon,
const gfx::VectorIcon& touch_icon) { … }
bool ReloadButton::GetMenuEnabled() const { … }
void ReloadButton::SetMenuEnabled(bool enable) { … }
void ReloadButton::OnMouseExited(const ui::MouseEvent& event) { … }
std::u16string ReloadButton::GetTooltipText(const gfx::Point& p) const { … }
void ReloadButton::GetAccessibleNodeData(ui::AXNodeData* node_data) { … }
bool ReloadButton::ShouldShowMenu() { … }
void ReloadButton::ShowDropDownMenu(ui::MenuSourceType source_type) { … }
bool ReloadButton::IsCommandIdChecked(int command_id) const { … }
bool ReloadButton::IsCommandIdEnabled(int command_id) const { … }
bool ReloadButton::IsCommandIdVisible(int command_id) const { … }
bool ReloadButton::GetAcceleratorForCommandId(
int command_id,
ui::Accelerator* accelerator) const { … }
void ReloadButton::ExecuteCommand(int command_id, int event_flags) { … }
std::unique_ptr<ui::SimpleMenuModel> ReloadButton::CreateMenuModel() { … }
void ReloadButton::SetVisibleMode(Mode mode) { … }
void ReloadButton::ButtonPressed(const ui::Event& event) { … }
void ReloadButton::ExecuteBrowserCommand(int command, int event_flags) { … }
void ReloadButton::OnDoubleClickTimer() { … }
void ReloadButton::OnStopToReloadTimer() { … }
BEGIN_METADATA(…)