Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / ash / launcher / overflow_button.h
blobb1d2db1dbcc358fa2f1911b9a2e0c22ae38c7768
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"
13 namespace gfx {
14 class ImageSkia;
17 namespace ash {
18 namespace internal {
20 // Launcher overflow chevron button.
21 class OverflowButton : public views::CustomButton {
22 public:
23 explicit OverflowButton(views::ButtonListener* listener);
24 virtual ~OverflowButton();
26 void OnShelfAlignmentChanged();
28 private:
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
40 } // namespace ash
42 #endif // ASH_LAUNCHER_OVERFLOW_BUTTON_H_