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.
4
5#ifndef CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_
6#define CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_
7
8#include "base/compiler_specific.h"
9#include "ui/views/controls/button/text_button.h"
10
11class BrowserView;
12
13namespace ui {
14class MouseEvent;
15class ThemeProvider;
16}
17
18// AvatarLabel
19//
20// A label used to display a string indicating that the current profile belongs
21// to a managed user.
22class AvatarLabel : public views::TextButton {
23 public:
24  explicit AvatarLabel(BrowserView* browser_view);
25  virtual ~AvatarLabel();
26
27  // views::TextButton:
28  virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
29
30  // Update the style of the label according to the provided theme.
31  void UpdateLabelStyle();
32
33 private:
34  BrowserView* browser_view_;
35
36  DISALLOW_COPY_AND_ASSIGN(AvatarLabel);
37};
38
39#endif  // CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_
40