1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_FORWARD_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_FORWARD_BUTTON_H_
7 
8 #include "chrome/browser/ui/views/toolbar/toolbar_button.h"
9 
10 class Browser;
11 
12 class BackForwardButton : public ToolbarButton {
13  public:
14   enum class Direction { kBack, kForward };
15 
16   BackForwardButton(Direction direction,
17                     PressedCallback callback,
18                     Browser* browser);
19   BackForwardButton(const BackForwardButton&) = delete;
20   BackForwardButton& operator=(const BackForwardButton&) = delete;
21   ~BackForwardButton() override;
22 
23   // ToolbarButton:
24   void UpdateIcon() override;
25 
26  private:
27   Direction direction_;
28 };
29 
30 #endif  // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BACK_FORWARD_BUTTON_H_
31