[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / profiles / avatar_icon_controller.h
blob88e99fa07392026432812883424ca33498dd9e05
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_ICON_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_ICON_CONTROLLER_H_
8 #import <AppKit/AppKit.h>
10 #import "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/profiles/avatar_base_controller.h"
13 @class AvatarLabelButton;
14 class Browser;
16 // This view controller manages the button/image that sits in the top of the
17 // window frame when using multi-profiles. It shows the current profile's
18 // avatar, or, when in Incognito, the spy dude. With multi-profiles, clicking
19 // will open the profile menu; in Incognito, clicking will do nothing.
20 @interface AvatarIconController : AvatarBaseController {
21 @private
22 // The managed user avatar label button. Only used for managed user profiles.
23 base::scoped_nsobject<AvatarLabelButton> labelButton_;
26 // The managed user avatar label button view.
27 @property(readonly, nonatomic) NSButton* labelButtonView;
29 // Designated initializer.
30 - (id)initWithBrowser:(Browser*)browser;
32 // Sets the image to be used as the avatar. This will have a drop shadow applied
33 // and will be resized to the frame of the button.
34 - (void)setImage:(NSImage*)image;
36 @end
38 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_ICON_CONTROLLER_H_