| 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..444110d5c23aba0d8034864e5b78bc701267e4ab
|
| --- /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"
|
| +
|
| +// A subclass of HoverImageButton that sends a target-action on right click.
|
| +@interface AvatarButton : HoverImageButton {
|
| + @private
|
| + SEL rightAction_;
|
| +}
|
| +
|
| +// Sets the action that will be called when this button is right clicked.
|
| +- (void)setRightAction:(SEL)selector;
|
| +
|
| +@end
|
| +
|
| +#endif //CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_
|
|
|