| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ | |
| 6 #define ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ | |
| 7 | |
| 8 #include "ash/ash_export.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "ui/gfx/geometry/size.h" | |
| 11 #include "ui/views/view.h" | |
| 12 | |
| 13 namespace views { | |
| 14 class Label; | |
| 15 } | |
| 16 | |
| 17 namespace ash { | |
| 18 class ThrobberView; | |
| 19 class TrayItemView; | |
| 20 class TrayPopupHeaderButton; | |
| 21 class ViewClickListener; | |
| 22 | |
| 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 ASH_EXPORT SpecialPopupRow : public views::View { | |
| 26 public: | |
| 27 SpecialPopupRow(); | |
| 28 ~SpecialPopupRow() override; | |
| 29 | |
| 30 void SetTextLabel(int string_id, ViewClickListener* listener); | |
| 31 void SetContent(views::View* view); | |
| 32 | |
| 33 void AddView(views::View* view, bool add_separator); | |
| 34 void AddButton(TrayPopupHeaderButton* button); | |
| 35 | |
| 36 views::View* content() const { return content_; } | |
| 37 | |
| 38 private: | |
| 39 // Overridden from views::View. | |
| 40 gfx::Size GetPreferredSize() const override; | |
| 41 int GetHeightForWidth(int width) const override; | |
| 42 void Layout() override; | |
| 43 | |
| 44 views::View* content_; | |
| 45 views::View* button_container_; | |
| 46 | |
| 47 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow); | |
| 48 }; | |
| 49 | |
| 50 } // namespace ash | |
| 51 | |
| 52 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ | |
| OLD | NEW |