Home | History | Annotate | Download | only in cocoa
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_
      6 #define UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_
      7 
      8 #import <Cocoa/Cocoa.h>
      9 
     10 #import "base/mac/scoped_nsobject.h"
     11 #import "ui/base/cocoa/hover_button.h"
     12 #include "ui/base/ui_base_export.h"
     13 
     14 // A button that changes images when you hover over it and click it.
     15 UI_BASE_EXPORT
     16 @interface HoverImageButton : HoverButton {
     17  @private
     18   base::scoped_nsobject<NSImage> defaultImage_;
     19   base::scoped_nsobject<NSImage> hoverImage_;
     20   base::scoped_nsobject<NSImage> pressedImage_;
     21 }
     22 
     23 // Sets the default image.
     24 - (void)setDefaultImage:(NSImage*)image;
     25 
     26 // Sets the hover image.
     27 - (void)setHoverImage:(NSImage*)image;
     28 
     29 // Sets the pressed image.
     30 - (void)setPressedImage:(NSImage*)image;
     31 
     32 @end
     33 
     34 #endif  // UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_
     35