Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: chrome/browser/ui/views/profiles/avatar_label.h

Issue 316863002: Rename "managed (mode|user)" to "supervised user" (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_LABEL_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_LABEL_H_
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_LABEL_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_LABEL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/views/controls/button/label_button.h" 9 #include "ui/views/controls/button/label_button.h"
10 10
11 class BrowserView; 11 class BrowserView;
12 12
13 // AvatarLabel 13 // AvatarLabel
14 // 14 //
15 // A label used to display a string indicating that the current profile belongs 15 // A label used to display a string indicating that the current profile belongs
16 // to a managed user. 16 // to a supervised user.
17 class AvatarLabel : public views::LabelButton { 17 class AvatarLabel : public views::LabelButton {
18 public: 18 public:
19 explicit AvatarLabel(BrowserView* browser_view); 19 explicit AvatarLabel(BrowserView* browser_view);
20 virtual ~AvatarLabel(); 20 virtual ~AvatarLabel();
21 21
22 // views::LabelButton: 22 // views::LabelButton:
23 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 23 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
24 24
25 // Update the style of the label according to the provided theme. 25 // Update the style of the label according to the provided theme.
26 void UpdateLabelStyle(); 26 void UpdateLabelStyle();
27 27
28 // Sets whether the label should be displayed on the right or on the left. A 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 29 // new button border is created which has the right insets for the positioning
30 // of the button. 30 // of the button.
31 void SetLabelOnRight(bool label_on_right); 31 void SetLabelOnRight(bool label_on_right);
32 32
33 private: 33 private:
34 BrowserView* browser_view_; 34 BrowserView* browser_view_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(AvatarLabel); 36 DISALLOW_COPY_AND_ASSIGN(AvatarLabel);
37 }; 37 };
38 38
39 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_LABEL_H_ 39 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_LABEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view.cc ('k') | chrome/browser/ui/views/profiles/avatar_label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698