1 // Copyright 2013 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_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/button/custom_button.h"
18 // A button with a bar image and title text below the bar image. These buttons
19 // will be used in audio and brightness control UI, which can be toggled with
21 class TrayBarButtonWithTitle
: public views::CustomButton
{
23 TrayBarButtonWithTitle(views::ButtonListener
* listener
,
26 virtual ~TrayBarButtonWithTitle();
28 void UpdateButton(bool control_on
);
33 // Overridden from views::CustomButton:
34 virtual gfx::Size
GetPreferredSize() const OVERRIDE
;
35 virtual void Layout() OVERRIDE
;
37 TrayBarButton
* image_
;
42 DISALLOW_COPY_AND_ASSIGN(TrayBarButtonWithTitle
);
47 #endif // ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_