1 // Copyright (c) 2012 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.
5 #ifndef ASH_LAUNCHER_OVERFLOW_BUTTON_H_
6 #define ASH_LAUNCHER_OVERFLOW_BUTTON_H_
8 #include "ash/shelf/shelf_types.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/views/controls/button/custom_button.h"
20 // Launcher overflow chevron button.
21 class OverflowButton
: public views::CustomButton
{
23 explicit OverflowButton(views::ButtonListener
* listener
);
24 virtual ~OverflowButton();
26 void OnShelfAlignmentChanged();
29 void PaintBackground(gfx::Canvas
* canvas
, int alpha
);
31 // views::View overrides:
32 virtual void OnPaint(gfx::Canvas
* canvas
) OVERRIDE
;
34 const gfx::ImageSkia
* image_
;
36 DISALLOW_COPY_AND_ASSIGN(OverflowButton
);
39 } // namespace internal
42 #endif // ASH_LAUNCHER_OVERFLOW_BUTTON_H_