summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/toolbar/app_toolbar_button_cell.h
blob: 6e5eb1ca9a02e0adc2b3e31bc48e6bbf12660edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 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 CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_
#define CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_

#import <Cocoa/Cocoa.h>

#include "base/memory/scoped_ptr.h"
#import "chrome/browser/ui/cocoa/clickhold_button_cell.h"
#include "chrome/browser/ui/toolbar/app_menu_icon_painter.h"

class AppMenuIconPainterDelegateMac;

// Cell for the app toolbar button. This is used to draw the app menu icon
// and paint severity levels.
@interface AppToolbarButtonCell : ClickHoldButtonCell {
 @private
  scoped_ptr<AppMenuIconPainter> iconPainter_;
  scoped_ptr<AppMenuIconPainterDelegateMac> delegate_;
}

- (void)setSeverity:(AppMenuIconPainter::Severity)severity
      shouldAnimate:(BOOL)shouldAnimate;

@end

#endif  // CHROME_BROWSER_UI_COCOA_TOOLBAR_APP_TOOLBAR_BUTTON_CELL_H_