summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/profiles/avatar_button_controller.h
blob: 8594029aa1f0250024fb4673ccc2597972f3c661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2014 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_PROFILES_AVATAR_BUTTON_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_

#import <AppKit/AppKit.h>

#import "chrome/browser/ui/cocoa/profiles/avatar_base_controller.h"

class Browser;

// This view controller manages the button that sits in the top of the
// window frame when using multi-profiles, and shows the current profile's
// name. Clicking the button will open the profile menu.
@interface AvatarButtonController : AvatarBaseController {
 @private
  BOOL isThemedWindow_;
  // Whether the signed in profile has an authentication error. Used to
  // display an error icon next to the button text.
  BOOL hasError_;
}
// Designated initializer.
- (id)initWithBrowser:(Browser*)browser;

@end

#endif  // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_