Disable accessible touch exploration by default.
[chromium-blink-merge.git] / ash / system / tray / special_popup_row.h
blob1cf8a843552ed9fe2666099f88f096eca29cd4ab
1 // Copyright (c) 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_SPECIAL_POPUP_ROW_H_
6 #define ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_
8 #include "ui/gfx/size.h"
9 #include "ui/views/view.h"
11 namespace views {
12 class Label;
15 namespace ash {
16 class ThrobberView;
17 class TrayItemView;
18 class TrayPopupHeaderButton;
19 class ViewClickListener;
21 // The 'special' looking row in the uber-tray popups. This is usually the bottom
22 // row in the popups, and has a fixed height.
23 class SpecialPopupRow : public views::View {
24 public:
25 SpecialPopupRow();
26 virtual ~SpecialPopupRow();
28 void SetTextLabel(int string_id, ViewClickListener* listener);
29 void SetContent(views::View* view);
31 void AddButton(TrayPopupHeaderButton* button);
32 void AddThrobber(ThrobberView* throbber);
34 views::View* content() const { return content_; }
36 private:
37 // Overridden from views::View.
38 virtual gfx::Size GetPreferredSize() const OVERRIDE;
39 virtual int GetHeightForWidth(int width) const OVERRIDE;
40 virtual void Layout() OVERRIDE;
42 views::View* content_;
43 views::View* button_container_;
44 views::Label* text_label_;
46 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow);
49 } // namespace ash
51 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_