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

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

Issue 8344048: [Mac] Show the edit profile link after a dwell delay so that it doesn't flicker when scrubbing. (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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ab6da1694e273b0d69fc640a58d5be9b7fdb743b..a76a4983323c90d322fed3930e0f266d4e6237d8 100644
--- a/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
@@ -7,6 +7,7 @@
#import <Cocoa/Cocoa.h>
+#include "base/mac/cocoa_protocols.h"
#include "base/memory/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
@@ -50,7 +51,7 @@ class Browser;
////////////////////////////////////////////////////////////////////////////////
// This view controller manages the menu item XIB.
-@interface AvatarMenuItemController : NSViewController {
+@interface AvatarMenuItemController : NSViewController<NSAnimationDelegate> {
@private
// The parent menu controller; owns this.
__weak AvatarMenuBubbleController* controller_;
@@ -61,6 +62,10 @@ class Browser;
// Tracks whether this item is currently highlighted.
BOOL isHighlighted_;
+ // The animation showing the edit link, which is run after the user has
+ // dwelled over the item for a short delay.
+ scoped_nsobject<NSAnimation> linkAnimation_;
+
// Instance variables that back the outlets.
__weak NSImageView* iconView_;
__weak NSImageView* activeView_;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698