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

Unified Diff: chrome/browser/ui/cocoa/image_button_cell.mm

Issue 7466016: Fix up reload button to not flicker, and simplify implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary header Created 9 years, 5 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/image_button_cell.mm
diff --git a/chrome/browser/ui/cocoa/image_button_cell.mm b/chrome/browser/ui/cocoa/image_button_cell.mm
index fe6dcb9f6504a0c61637f461ecffefc33ac21212..b733eee3b42a675710fefc66e0993ac276d9a880 100644
--- a/chrome/browser/ui/cocoa/image_button_cell.mm
+++ b/chrome/browser/ui/cocoa/image_button_cell.mm
@@ -138,7 +138,11 @@ const CGFloat kImageNoFocusAlpha = 0.65;
- (void)setIsMouseInside:(BOOL)isMouseInside {
if (isMouseInside_ != isMouseInside) {
isMouseInside_ = isMouseInside;
- [[self controlView] setNeedsDisplay:YES];
+ NSView<ImageButton>* control = (NSView<ImageButton>*)[self controlView];
Scott Hess - ex-Googler 2011/07/21 00:48:40 Is this supposed to be static_cast?
dmac 2011/07/29 20:01:00 Done.
+ if ([control respondsToSelector:@selector(mouseInsideStateDidChange:)]) {
+ [control mouseInsideStateDidChange:isMouseInside];
+ }
+ [control setNeedsDisplay:YES];
}
}

Powered by Google App Engine
This is Rietveld 408576698