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

Unified Diff: trunk/src/ui/base/cocoa/controls/hover_image_menu_button_cell.h

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_cell.h
===================================================================
--- trunk/src/ui/base/cocoa/controls/hover_image_menu_button_cell.h (revision 206373)
+++ trunk/src/ui/base/cocoa/controls/hover_image_menu_button_cell.h (working copy)
@@ -1,32 +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.
-
-#ifndef UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_CELL_H_
-#define UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_CELL_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/memory/scoped_nsobject.h"
-#include "ui/base/ui_export.h"
-
-// A custom NSPopUpButtonCell that permits a hover image, and draws only an
-// image in its frame; no border, bezel or drop-down arrow. Use setImage to set
-// the default image, setAlternateImage to set the button shown while the menu
-// is active, and setHoverImage for the mouseover hover image.
-UI_EXPORT
-@interface HoverImageMenuButtonCell : NSPopUpButtonCell {
- @private
- scoped_nsobject<NSImage> hoverImage_;
- BOOL hovered_;
-}
-
-@property(retain, nonatomic) NSImage* hoverImage;
-@property(assign, nonatomic, getter=isHovered) BOOL hovered;
-
-// Return the image that would be drawn based on the current state flags.
-- (NSImage*)imageToDraw;
-
-@end
-
-#endif // UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_CELL_H_

Powered by Google App Engine
This is Rietveld 408576698