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_AVATAR_LABEL_H_
6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_
8 #include "base/compiler_specific.h"
9 #include "ui/views/controls/button/label_button.h"
15 // A label used to display a string indicating that the current profile belongs
17 class AvatarLabel
: public views::LabelButton
{
19 explicit AvatarLabel(BrowserView
* browser_view
);
20 virtual ~AvatarLabel();
22 // views::LabelButton:
23 virtual bool OnMousePressed(const ui::MouseEvent
& event
) OVERRIDE
;
25 // Update the style of the label according to the provided theme.
26 void UpdateLabelStyle();
28 // Sets whether the label should be displayed on the right or on the left. A
29 // new button border is created which has the right insets for the positioning
31 void SetLabelOnRight(bool label_on_right
);
34 BrowserView
* browser_view_
;
36 DISALLOW_COPY_AND_ASSIGN(AvatarLabel
);
39 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_