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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm

Issue 2169623002: [Material][Mac] Fixed Bookmark Items Highlight Issues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No highlight if it's disabled Created 4 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/bookmarks/bookmark_button.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
index d950688bea745724d29cd38b477bc62205f52430..f402857a3150840a7cd0c5c6fd09f3394c05d04d 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
@@ -360,16 +360,6 @@ BookmarkButton* gDraggedButton = nil; // Weak
[delegate_ mouseExitedButton:self event:event];
}
-- (void)mouseDown:(NSEvent*)theEvent {
- // Clicking on a bookmark button in Material Design should highlight it.
- const int kCellTag = [[self cell] tag];
- if (kCellTag == kMaterialStandardButtonTypeWithLimitedClickFeedback &&
- [self isEnabled]) {
- [self highlight:YES];
- }
- [super mouseDown:theEvent];
-}
-
- (void)mouseMoved:(NSEvent*)theEvent {
if ([delegate_ respondsToSelector:@selector(mouseMoved:)])
[id(delegate_) mouseMoved:theEvent];
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm ('k') | chrome/browser/ui/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698