#include "chrome/browser/ui/views/translate/translate_icon_view.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/ui/actions/chrome_action_id.h"
#include "chrome/browser/ui/browser_command_controller.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/toolbar/pinned_toolbar_actions_container.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/browser/ui/views/translate/translate_bubble_controller.h"
#include "chrome/browser/ui/views/translate/translate_bubble_view.h"
#include "chrome/grit/generated_resources.h"
#include "components/translate/core/browser/language_state.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/browser/translate_metrics_logger.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/actions/actions.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_features.h"
TranslateIconView::TranslateIconView(
CommandUpdater* command_updater,
IconLabelBubbleView::Delegate* icon_label_bubble_delegate,
PageActionIconView::Delegate* page_action_icon_delegate,
Browser* browser)
: … { … }
TranslateIconView::~TranslateIconView() = default;
views::BubbleDialogDelegate* TranslateIconView::GetBubble() const { … }
views::BubbleDialogDelegate* TranslateIconView::GetPartialTranslateBubble()
const { … }
bool TranslateIconView::IsBubbleShowing() const { … }
void TranslateIconView::UpdateImpl() { … }
void TranslateIconView::OnExecuting(
PageActionIconView::ExecuteSource execute_source) { … }
const gfx::VectorIcon& TranslateIconView::GetVectorIcon() const { … }
BEGIN_METADATA(…)