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

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

Issue 916523003: Bring up fast user switcher on right-click of the avatar menu on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #import "ui/base/cocoa/hover_image_button.h"
11
12 // 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.
13 // Button respond to right clicks for fast profile switching
14 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.
15 @interface AvatarButton : HoverImageButton {
16 SEL rightAction;
Alexei Svitkine (slow) 2015/02/17 16:43:26 Add @private.
anthonyvd 2015/02/18 00:02:23 Done.
17 }
18
19 - (void)setRightAction:(SEL)selector;
Alexei Svitkine (slow) 2015/02/17 16:43:26 Needs a comment.
anthonyvd 2015/02/18 00:02:24 Done.
20
21 @end
22
23 #endif //CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698