Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Side by Side Diff: chrome/browser/ui/cocoa/profiles/avatar_button.h

Issue 2459073003: [Mac] Implement an active state for the avatar button (Closed)
Patch Set: Updated comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROFILES_AVATAR_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "ui/base/cocoa/hover_image_button.h" 10 #import "ui/base/cocoa/hover_image_button.h"
11 11
12 // A subclass of HoverImageButton that sends a target-action on right click. 12 // A subclass of HoverImageButton that sends a target-action on right click and
13 // has an active state.
13 @interface AvatarButton : HoverImageButton { 14 @interface AvatarButton : HoverImageButton {
14 @private 15 @private
15 SEL rightAction_; 16 SEL rightAction_;
16 } 17 }
17 18
19 // YES if the button is active. The button should only be active when the
20 // avatar bubble is shown.
21 @property(nonatomic, assign) BOOL isActive;
22
18 // Sets the action that will be called when this button is right clicked. 23 // Sets the action that will be called when this button is right clicked.
19 - (void)setRightAction:(SEL)selector; 24 - (void)setRightAction:(SEL)selector;
20 25
21 @end 26 @end
22 27
23 #endif //CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_ 28 #endif //CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/avatar_base_controller.h ('k') | chrome/browser/ui/cocoa/profiles/avatar_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698