#include "chrome/browser/ui/views/location_bar/lens_overlay_page_action_icon_view.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/search.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/lens/lens_overlay_controller.h"
#include "chrome/browser/ui/lens/lens_overlay_entry_point_controller.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/omnibox/omnibox_view_views.h"
#include "chrome/browser/ui/webui/new_tab_page/new_tab_page_ui.h"
#include "chrome/browser/ui/webui/new_tab_page_third_party/new_tab_page_third_party_ui.h"
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
#include "chrome/browser/user_education/user_education_service.h"
#include "components/lens/lens_features.h"
#include "components/omnibox/browser/omnibox_prefs.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/view_class_properties.h"
namespace {
bool IsNewTabPage(content::WebContents* const web_contents) { … }
}
LensOverlayPageActionIconView::LensOverlayPageActionIconView(
Browser* browser,
IconLabelBubbleView::Delegate* icon_label_bubble_delegate,
PageActionIconView::Delegate* page_action_icon_delegate)
: … { … }
LensOverlayPageActionIconView::~LensOverlayPageActionIconView() = default;
bool LensOverlayPageActionIconView::ShouldShowLabel() const { … }
void LensOverlayPageActionIconView::Layout(PassKey) { … }
void LensOverlayPageActionIconView::OnBoundsChanged(
const gfx::Rect& previous_bounds) { … }
void LensOverlayPageActionIconView::UpdateImpl() { … }
void LensOverlayPageActionIconView::OnExecuting(
PageActionIconView::ExecuteSource source) { … }
views::BubbleDialogDelegate* LensOverlayPageActionIconView::GetBubble() const { … }
const gfx::VectorIcon& LensOverlayPageActionIconView::GetVectorIcon() const { … }
gfx::Size LensOverlayPageActionIconView::CalculatePreferredSize(
const views::SizeBounds& available_size) const { … }
BEGIN_METADATA(…)