[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / toolbar / wrench_toolbar_button.h
blob697164dd4e406ed4ffc9f7a4de10e0229acb0c79
1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_TOOLBAR_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_TOOLBAR_BUTTON_H_
8 #include "chrome/browser/ui/toolbar/wrench_icon_painter.h"
9 #include "ui/views/controls/button/menu_button.h"
11 // TODO(gbillock): Rename this? No longer a wrench.
12 class WrenchToolbarButton : public views::MenuButton,
13 public WrenchIconPainter::Delegate {
14 public:
15 explicit WrenchToolbarButton(views::MenuButtonListener* menu_button_listener);
16 virtual ~WrenchToolbarButton();
18 void SetSeverity(WrenchIconPainter::Severity severity, bool animate);
20 private:
21 // views::MenuButton:
22 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
24 // WrenchIconPainter::Delegate:
25 virtual void ScheduleWrenchIconPaint() OVERRIDE;
27 WrenchIconPainter::BezelType GetCurrentBezelType() const;
29 scoped_ptr<WrenchIconPainter> wrench_icon_painter_;
31 DISALLOW_COPY_AND_ASSIGN(WrenchToolbarButton);
34 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_TOOLBAR_BUTTON_H_