OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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_TRAY_DETAILS_VIEW_H_ |
| 6 #define ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
| 7 |
| 8 #include "ui/views/view.h" |
| 9 |
| 10 namespace views { |
| 11 class ScrollView; |
| 12 } |
| 13 |
| 14 namespace ash { |
| 15 namespace internal { |
| 16 |
| 17 class FixedSizedScrollView; |
| 18 class SpecialPopupRow; |
| 19 class ViewClickListener; |
| 20 |
| 21 class TrayDetailsView : public views::View { |
| 22 public: |
| 23 TrayDetailsView(); |
| 24 virtual ~TrayDetailsView(); |
| 25 |
| 26 // Creates a row with special highlighting etc. This is typically the |
| 27 // bottom-most row in the popup. |
| 28 void CreateSpecialRow(int string_id, ViewClickListener* listener); |
| 29 |
| 30 // Creates a scrollable list. |
| 31 void CreateScrollableList(); |
| 32 |
| 33 // Removes (and destroys) all child views. |
| 34 void Reset(); |
| 35 |
| 36 SpecialPopupRow* footer() const { return footer_; } |
| 37 FixedSizedScrollView* scroller() const { return scroller_; } |
| 38 views::View* scroll_content() const { return scroll_content_; } |
| 39 |
| 40 protected: |
| 41 // Overridden from views::View. |
| 42 virtual void Layout() OVERRIDE; |
| 43 |
| 44 private: |
| 45 SpecialPopupRow* footer_; |
| 46 FixedSizedScrollView* scroller_; |
| 47 views::View* scroll_content_; |
| 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); |
| 50 }; |
| 51 |
| 52 } // namespace internal |
| 53 } // namespace ash |
| 54 |
| 55 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
OLD | NEW |