| 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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/tray/special_popup_row.h" | 9 #include "ash/system/tray/special_popup_row.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 class ScrollView; | 13 class ScrollView; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace ash { | 16 namespace ash { |
| 17 | |
| 18 class SystemTrayItem; | |
| 19 | |
| 20 namespace internal { | |
| 21 | |
| 22 class FixedSizedScrollView; | 17 class FixedSizedScrollView; |
| 23 class ScrollBorder; | 18 class ScrollBorder; |
| 19 class SystemTrayItem; |
| 24 class ViewClickListener; | 20 class ViewClickListener; |
| 25 | 21 |
| 26 class ASH_EXPORT TrayDetailsView : public views::View { | 22 class ASH_EXPORT TrayDetailsView : public views::View { |
| 27 public: | 23 public: |
| 28 explicit TrayDetailsView(SystemTrayItem* owner); | 24 explicit TrayDetailsView(SystemTrayItem* owner); |
| 29 virtual ~TrayDetailsView(); | 25 virtual ~TrayDetailsView(); |
| 30 | 26 |
| 31 // Creates a row with special highlighting etc. This is typically the | 27 // Creates a row with special highlighting etc. This is typically the |
| 32 // bottom-most row in the popup. | 28 // bottom-most row in the popup. |
| 33 void CreateSpecialRow(int string_id, ViewClickListener* listener); | 29 void CreateSpecialRow(int string_id, ViewClickListener* listener); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 60 private: | 56 private: |
| 61 SystemTrayItem* owner_; | 57 SystemTrayItem* owner_; |
| 62 SpecialPopupRow* footer_; | 58 SpecialPopupRow* footer_; |
| 63 FixedSizedScrollView* scroller_; | 59 FixedSizedScrollView* scroller_; |
| 64 views::View* scroll_content_; | 60 views::View* scroll_content_; |
| 65 ScrollBorder* scroll_border_; // Weak reference | 61 ScrollBorder* scroll_border_; // Weak reference |
| 66 | 62 |
| 67 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); | 63 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); |
| 68 }; | 64 }; |
| 69 | 65 |
| 70 } // namespace internal | |
| 71 } // namespace ash | 66 } // namespace ash |
| 72 | 67 |
| 73 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ | 68 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
| OLD | NEW |