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

Unified Diff: chrome/browser/ui/cocoa/browser/avatar_label_controller.h

Issue 15932008: Add managed user avatar menu for mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT. Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser/avatar_label_controller.h
diff --git a/chrome/browser/ui/cocoa/browser/avatar_label_controller.h b/chrome/browser/ui/cocoa/browser/avatar_label_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..145c2b3128043ecc9151e76c21359b80c10de6a2
--- /dev/null
+++ b/chrome/browser/ui/cocoa/browser/avatar_label_controller.h
@@ -0,0 +1,34 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_LABEL_CONTROLLER_H_
+#define CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_LABEL_CONTROLLER_H_
+
+#import <AppKit/AppKit.h>
+
+class Browser;
+
+namespace ui {
+class ThemeProvider;
+}
+
+// This view controller manages the avatar label which is used to indicate that
+// the currently active profile belongs to a managed user. It sits on top of
+// the window frame, beside the avatar button.
+@interface AvatarLabelController : NSViewController {
+}
+
+// The view cast to a text field.
+@property (readonly, nonatomic) NSTextField* labelView;
+
+// Designated initializer.
+- (id)init;
+
+// Updates the text color and the background color of the avatar label
+// according to the chosen theme.
+- (void)updateColors:(ui::ThemeProvider*)themeProvider;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_LABEL_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698