#include "chrome/browser/renderer_context_menu/accessibility_labels_menu_observer.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/accessibility/accessibility_labels_service.h"
#include "chrome/browser/accessibility/accessibility_labels_service_factory.h"
#include "chrome/browser/accessibility/accessibility_state_utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/renderer_context_menu/accessibility_labels_bubble_model.h"
#include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
#include "chrome/browser/ui/confirm_bubble.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/context_menu_params.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/geometry/rect.h"
BrowserThread;
AccessibilityLabelsMenuObserver::AccessibilityLabelsMenuObserver(
RenderViewContextMenuProxy* proxy)
: … { … }
AccessibilityLabelsMenuObserver::~AccessibilityLabelsMenuObserver() { … }
void AccessibilityLabelsMenuObserver::InitMenu(
const content::ContextMenuParams& params) { … }
bool AccessibilityLabelsMenuObserver::IsCommandIdSupported(int command_id) { … }
bool AccessibilityLabelsMenuObserver::IsCommandIdChecked(int command_id) { … }
bool AccessibilityLabelsMenuObserver::IsCommandIdEnabled(int command_id) { … }
void AccessibilityLabelsMenuObserver::ExecuteCommand(int command_id) { … }
bool AccessibilityLabelsMenuObserver::ShouldShowLabelsItem() { … }
void AccessibilityLabelsMenuObserver::ShowConfirmBubble(Profile* profile,
bool enable_always) { … }