OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COCOA_BROWSER_AVATAR_BUTTON_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <AppKit/AppKit.h> | 9 #import <AppKit/AppKit.h> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 // The view cast to a button. | 35 // The view cast to a button. |
36 @property (readonly, nonatomic) NSButton* buttonView; | 36 @property (readonly, nonatomic) NSButton* buttonView; |
37 | 37 |
38 // Designated initializer. | 38 // Designated initializer. |
39 - (id)initWithBrowser:(Browser*)browser; | 39 - (id)initWithBrowser:(Browser*)browser; |
40 | 40 |
41 // Sets the image to be used as the avatar. This will have a drop shadow applied | 41 // Sets the image to be used as the avatar. This will have a drop shadow applied |
42 // and will be resized to the frame of the button. | 42 // and will be resized to the frame of the button. |
43 - (void)setImage:(NSImage*)image; | 43 - (void)setImage:(NSImage*)image; |
44 | 44 |
| 45 // Shows the avatar bubble. |
| 46 - (void)showAvatarBubble; |
| 47 |
45 @end | 48 @end |
46 | 49 |
47 @interface AvatarButtonController (ExposedForTesting) | 50 @interface AvatarButtonController (ExposedForTesting) |
48 - (AvatarMenuBubbleController*)menuController; | 51 - (AvatarMenuBubbleController*)menuController; |
49 @end | 52 @end |
50 | 53 |
51 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_CONTROLLER_H_ | 54 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_CONTROLLER_H_ |
OLD | NEW |