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

Unified Diff: trunk/src/ui/base/cocoa/controls/hover_image_menu_button.mm

Issue 17059002: Revert 206237 "Menu for the OSX app launcher, HoverImageMenuButt..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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: trunk/src/ui/base/cocoa/controls/hover_image_menu_button.mm
===================================================================
--- trunk/src/ui/base/cocoa/controls/hover_image_menu_button.mm (revision 206373)
+++ trunk/src/ui/base/cocoa/controls/hover_image_menu_button.mm (working copy)
@@ -1,44 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "ui/base/cocoa/controls/hover_image_menu_button.h"
-
-#include "base/mac/foundation_util.h"
-#import "ui/base/cocoa/controls/hover_image_menu_button_cell.h"
-
-@implementation HoverImageMenuButton
-
-+ (Class)cellClass {
- return [HoverImageMenuButtonCell class];
-}
-
-- (id)initWithFrame:(NSRect)frameRect
- pullsDown:(BOOL)flag {
- if ((self = [super initWithFrame:frameRect
- pullsDown:flag])) {
- trackingArea_.reset(
- [[CrTrackingArea alloc] initWithRect:NSZeroRect
- options:NSTrackingInVisibleRect |
- NSTrackingMouseEnteredAndExited |
- NSTrackingActiveInKeyWindow
- owner:self
- userInfo:nil]);
- [self addTrackingArea:trackingArea_.get()];
- }
- return self;
-}
-
-- (HoverImageMenuButtonCell*)hoverImageMenuButtonCell {
- return base::mac::ObjCCastStrict<HoverImageMenuButtonCell>([self cell]);
-}
-
-- (void)mouseEntered:(NSEvent*)theEvent {
- [[self cell] setHovered:YES];
-}
-
-- (void)mouseExited:(NSEvent*)theEvent {
- [[self cell] setHovered:NO];
-}
-
-@end

Powered by Google App Engine
This is Rietveld 408576698