OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_TRAY_DETAILS_VIEW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
6 #define ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
7 | 7 |
8 #include "ui/views/view.h" | 8 #include "ui/views/view.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual ~TrayDetailsView(); | 28 virtual ~TrayDetailsView(); |
29 | 29 |
30 // Creates a row with special highlighting etc. This is typically the | 30 // Creates a row with special highlighting etc. This is typically the |
31 // bottom-most row in the popup. | 31 // bottom-most row in the popup. |
32 void CreateSpecialRow(int string_id, ViewClickListener* listener); | 32 void CreateSpecialRow(int string_id, ViewClickListener* listener); |
33 | 33 |
34 // Creates a scrollable list. The list has a border at the bottom if there is | 34 // Creates a scrollable list. The list has a border at the bottom if there is |
35 // any other view between the list and the footer row at the bottom. | 35 // any other view between the list and the footer row at the bottom. |
36 void CreateScrollableList(); | 36 void CreateScrollableList(); |
37 | 37 |
| 38 // Adds a separator in scrollable list. |
| 39 void AddScrollSeparator(); |
| 40 |
38 // Removes (and destroys) all child views. | 41 // Removes (and destroys) all child views. |
39 void Reset(); | 42 void Reset(); |
40 | 43 |
41 SystemTrayItem* owner() const { return owner_; } | 44 SystemTrayItem* owner() const { return owner_; } |
42 SpecialPopupRow* footer() const { return footer_; } | 45 SpecialPopupRow* footer() const { return footer_; } |
43 FixedSizedScrollView* scroller() const { return scroller_; } | 46 FixedSizedScrollView* scroller() const { return scroller_; } |
44 views::View* scroll_content() const { return scroll_content_; } | 47 views::View* scroll_content() const { return scroll_content_; } |
45 | 48 |
46 protected: | 49 protected: |
47 // Overridden from views::View. | 50 // Overridden from views::View. |
48 virtual void Layout() OVERRIDE; | 51 virtual void Layout() OVERRIDE; |
49 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; | 52 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; |
50 | 53 |
51 private: | 54 private: |
52 SystemTrayItem* owner_; | 55 SystemTrayItem* owner_; |
53 SpecialPopupRow* footer_; | 56 SpecialPopupRow* footer_; |
54 FixedSizedScrollView* scroller_; | 57 FixedSizedScrollView* scroller_; |
55 views::View* scroll_content_; | 58 views::View* scroll_content_; |
56 ScrollBorder* scroll_border_; | 59 ScrollBorder* scroll_border_; |
57 | 60 |
58 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); | 61 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); |
59 }; | 62 }; |
60 | 63 |
61 } // namespace internal | 64 } // namespace internal |
62 } // namespace ash | 65 } // namespace ash |
63 | 66 |
64 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ | 67 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
OLD | NEW |