Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / views / avatar_label.h
blobaccd28201ff10263f17b248dd27da1c1e3b94dc1
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/text_button.h"
11 class BrowserView;
13 namespace ui {
14 class MouseEvent;
15 class ThemeProvider;
18 // AvatarLabel
20 // A label used to display a string indicating that the current profile belongs
21 // to a managed user.
22 class AvatarLabel : public views::TextButton {
23 public:
24 explicit AvatarLabel(BrowserView* browser_view);
25 virtual ~AvatarLabel();
27 // views::TextButton:
28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
30 // Update the style of the label according to the provided theme.
31 void UpdateLabelStyle();
33 // Sets whether the label should be displayed on the right or on the left. A
34 // new button border is created which has the right insets for the positioning
35 // of the button.
36 void SetLabelOnRight(bool label_on_right);
38 private:
39 BrowserView* browser_view_;
41 DISALLOW_COPY_AND_ASSIGN(AvatarLabel);
44 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_LABEL_H_