Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / ash / system / tray / special_popup_row.h
blobee068e4eb8a7d61291fe00b6273d873b1da8613e
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 namespace internal {
18 class ThrobberView;
19 class TrayItemView;
20 class TrayPopupHeaderButton;
21 class ViewClickListener;
23 // The 'special' looking row in the uber-tray popups. This is usually the bottom
24 // row in the popups, and has a fixed height.
25 class SpecialPopupRow : public views::View {
26 public:
27 SpecialPopupRow();
28 virtual ~SpecialPopupRow();
30 void SetTextLabel(int string_id, ViewClickListener* listener);
31 void SetContent(views::View* view);
33 void AddButton(TrayPopupHeaderButton* button);
34 void AddThrobber(ThrobberView* throbber);
36 views::View* content() const { return content_; }
38 private:
39 // Overridden from views::View.
40 virtual gfx::Size GetPreferredSize() OVERRIDE;
41 virtual int GetHeightForWidth(int width) OVERRIDE;
42 virtual void Layout() OVERRIDE;
44 views::View* content_;
45 views::View* button_container_;
46 views::Label* text_label_;
48 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow);
51 } // namespace internal
52 } // namespace ash
54 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_