OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ |
6 #define ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ | 6 #define ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ |
7 | 7 |
8 #include "ui/gfx/size.h" | 8 #include "ui/gfx/size.h" |
9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 void SetContent(views::View* view); | 31 void SetContent(views::View* view); |
32 | 32 |
33 void AddButton(TrayPopupHeaderButton* button); | 33 void AddButton(TrayPopupHeaderButton* button); |
34 void AddThrobber(ThrobberView* throbber); | 34 void AddThrobber(ThrobberView* throbber); |
35 | 35 |
36 views::View* content() const { return content_; } | 36 views::View* content() const { return content_; } |
37 | 37 |
38 private: | 38 private: |
39 // Overridden from views::View. | 39 // Overridden from views::View. |
40 virtual gfx::Size GetPreferredSize() OVERRIDE; | 40 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 41 virtual int GetHeightForWidth(int width) OVERRIDE; |
41 virtual void Layout() OVERRIDE; | 42 virtual void Layout() OVERRIDE; |
42 | 43 |
43 views::View* content_; | 44 views::View* content_; |
44 views::View* button_container_; | 45 views::View* button_container_; |
45 views::Label* text_label_; | 46 views::Label* text_label_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow); | 48 DISALLOW_COPY_AND_ASSIGN(SpecialPopupRow); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace internal | 51 } // namespace internal |
51 } // namespace ash | 52 } // namespace ash |
52 | 53 |
53 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ | 54 #endif // ASH_SYSTEM_TRAY_SPECIAL_POPUP_ROW_H_ |
OLD | NEW |