Chromium Code Reviews| Index: chrome/browser/ui/cocoa/profiles/avatar_button.h |
| diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button.h b/chrome/browser/ui/cocoa/profiles/avatar_button.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cd5ddfcbe11dae46ed08bacfdb0cdc24e823fdd3 |
| --- /dev/null |
| +++ b/chrome/browser/ui/cocoa/profiles/avatar_button.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2015 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_H_ |
| +#define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_ |
| + |
| +#import <Cocoa/Cocoa.h> |
| + |
| +#import "ui/base/cocoa/hover_image_button.h" |
| + |
| +// Subclassing HoverImageButton for the sole purpose of letting the Avatar |
|
Robert Sesek
2015/02/17 18:40:46
Use descriptive comments (http://google-styleguide
anthonyvd
2015/02/18 00:02:23
Done.
|
| +// Button respond to right clicks for fast profile switching |
| +UI_BASE_EXPORT |
|
Alexei Svitkine (slow)
2015/02/17 16:43:26
This isn't in ui base, so shouldn't need this.
anthonyvd
2015/02/18 00:02:23
Done.
|
| +@interface AvatarButton : HoverImageButton { |
| + SEL rightAction; |
|
Alexei Svitkine (slow)
2015/02/17 16:43:26
Add @private.
anthonyvd
2015/02/18 00:02:23
Done.
|
| +} |
| + |
| +- (void)setRightAction:(SEL)selector; |
|
Alexei Svitkine (slow)
2015/02/17 16:43:26
Needs a comment.
anthonyvd
2015/02/18 00:02:24
Done.
|
| + |
| +@end |
| + |
| +#endif //CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_ |