blob: dfdefb3cc272b00ddf3e5a4dcf99be8a5d11ff76 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_FIND_BAR_ICON_H_
#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_FIND_BAR_ICON_H_
#include "base/macros.h"
#include "chrome/browser/ui/views/page_action/page_action_icon_view.h"
// The find icon to show when the find bar is visible.
class FindBarIcon : public PageActionIconView {
public:
explicit FindBarIcon(PageActionIconView::Delegate* delegate);
~FindBarIcon() override;
void SetActive(bool activate, bool should_animate);
protected:
// PageActionIconView:
void OnExecuting(ExecuteSource execute_source) override;
views::BubbleDialogDelegateView* GetBubble() const override;
const gfx::VectorIcon& GetVectorIcon() const override;
base::string16 GetTextForTooltipAndAccessibleName() const override;
private:
DISALLOW_COPY_AND_ASSIGN(FindBarIcon);
};
#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_FIND_BAR_ICON_H_