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

Unified Diff: chrome/browser/cocoa/tab_view.mm

Issue 661265: P2.1a.
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/cocoa/tab_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_view.mm
diff --git a/chrome/browser/cocoa/tab_view.mm b/chrome/browser/cocoa/tab_view.mm
index cc2df734f00ff49bfbc5b2a17aafda6ac48b7f47..029810de3c70fcd33bb3a1d5f6d94f7a3fc53f66 100644
--- a/chrome/browser/cocoa/tab_view.mm
+++ b/chrome/browser/cocoa/tab_view.mm
@@ -92,6 +92,9 @@ const CGFloat kRapidCloseDist = 2.5;
isMouseInside_ = YES;
[self resetLastGlowUpdateTime];
[self adjustGlowValue];
+
+ // The controller needs to update favicon/close button display state.
+ [controller_ updateVisibility];
}
- (void)mouseMoved:(NSEvent*)theEvent {
@@ -106,6 +109,9 @@ const CGFloat kRapidCloseDist = 2.5;
[NSDate timeIntervalSinceReferenceDate] + kHoverHoldDuration;
[self resetLastGlowUpdateTime];
[self adjustGlowValue];
+
+ // The controller needs to update favicon/close button display state.
+ [controller_ updateVisibility];
}
- (void)setTrackingEnabled:(BOOL)enabled {
@@ -209,7 +215,7 @@ const CGFloat kRapidCloseDist = 2.5;
// Record the state of the close button here, because selecting the tab will
// unhide it.
- BOOL closeButtonActive = [closeButton_ isHidden] ? NO : YES;
+ BOOL closeButtonActive = [controller_ closeButtonActive];
// During the tab closure animation (in particular, during rapid tab closure),
// we may get incorrectly hit with a mouse down. If it should have gone to the
@@ -804,6 +810,10 @@ const CGFloat kRapidCloseDist = 2.5;
}
}
+- (BOOL)isMouseInside {
+ return isMouseInside_;
+}
+
- (BOOL)accessibilityIsIgnored {
return NO;
}
« no previous file with comments | « chrome/browser/cocoa/tab_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698