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

Unified Diff: chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h

Issue 8332008: Cocoa: Support keyboard navigation in avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/browser/avatar_menu_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h b/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
index 28da26fc9deb27776e09249f9f414112f651793e..e418014a1f2e02f8e704fa8f7bed572daa007020 100644
--- a/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
@@ -58,6 +58,9 @@ class Browser;
// The AvatarMenuModel::item.model_index field.
size_t modelIndex_;
+ // Tracks wheter this item is currently highlighted.
+ BOOL isHighlighted_;
+
// Instance variables that back the outlets.
__weak NSImageView* iconView_;
__weak NSImageView* activeView_;
@@ -69,6 +72,7 @@ class Browser;
__weak NSButton* editButton_;
}
@property(readonly, nonatomic) size_t modelIndex;
+@property(assign, nonatomic) BOOL isHighlighted;
Robert Sesek 2011/10/24 19:07:04 Could you instead make the view key and test for t
sail 2011/10/24 19:16:38 Currently we highlight on mouse over too. I think
Robert Sesek 2011/10/24 19:25:53 OK.
@property(assign, nonatomic) IBOutlet NSImageView* iconView;
@property(assign, nonatomic) IBOutlet NSImageView* activeView;
@property(assign, nonatomic) IBOutlet NSTextField* nameField;
@@ -102,9 +106,6 @@ class Browser;
// Used to highlight the background on hover.
ScopedCrTrackingArea trackingArea_;
-
- // Whether the mouse is inside the bounds of this view.
- BOOL mouseInside_;
}
@property(assign, nonatomic) IBOutlet AvatarMenuItemController* viewController;
@end

Powered by Google App Engine
This is Rietveld 408576698