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

Unified 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: Unit test and fix issues from CR 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 side-by-side diff with in-line comments
Download patch
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..cecdee0ddb9570bcb2f05fcfd1f07d1ed680d465
--- /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
Robert Sesek 2015/02/18 18:51:37 nit: indent +1 space
anthonyvd 2015/02/19 03:12:52 Done.
+ SEL rightAction;
Robert Sesek 2015/02/18 18:51:37 naming: rightAction_
anthonyvd 2015/02/19 03:12:52 Done.
+}
+
+// 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_

Powered by Google App Engine
This is Rietveld 408576698