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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm

Issue 2478673002: [Mac] Hover/Pressed background for the Omnibox decorations (Closed)
Patch Set: nit Created 4 years, 1 month 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/location_bar/autocomplete_text_field_cell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
index bd327b43b0a993a4705ef491b07503eeba7800d1..a2952039b42c22629a30f2bda87fd7fa038feef4 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
@@ -196,6 +196,12 @@ const CGFloat kAnimationDuration = 0.2;
[editor mouseDown:theEvent];
}
+- (void)mouseUp:(NSEvent*)theEvent {
+ const NSRect bounds([self bounds]);
+ AutocompleteTextFieldCell* cell = [self cell];
+ [cell mouseUp:theEvent inRect:bounds ofView:self];
+}
+
- (void)rightMouseDown:(NSEvent*)event {
if (observer_)
observer_->OnMouseDown([event buttonNumber]);
@@ -316,7 +322,7 @@ const CGFloat kAnimationDuration = 0.2;
// Reload the decoration tooltips.
[currentToolTips_ removeAllObjects];
- [[self cell] updateToolTipsInRect:[self bounds] ofView:self];
+ [[self cell] updateMouseTrackingAndToolTipsInRect:[self bounds] ofView:self];
}
// NOTE(shess): http://crbug.com/19116 describes a weird bug which
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698