| 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_
|
|
|