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_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H | 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H |
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H | 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H |
7 | 7 |
8 #include "ash/system/tray/tray_details_view.h" | 8 #include "ash/system/tray/tray_details_view.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 namespace tray { | 13 namespace tray { |
14 | 14 |
15 // Abstract base class for all NetworkDetailedView derived subclasses, | 15 // Abstract base class for all NetworkDetailedView derived subclasses, |
16 // which includes NetworkWifiDetailedView and NetworkListDetailedViewBase. | 16 // which includes NetworkWifiDetailedView and NetworkListDetailedViewBase. |
17 class NetworkDetailedView : public TrayDetailsView { | 17 class NetworkDetailedView : public TrayDetailsView { |
18 public: | 18 public: |
| 19 explicit NetworkDetailedView(SystemTrayItem* owner) |
| 20 : TrayDetailsView(owner) { |
| 21 } |
| 22 |
19 enum DetailedViewType { | 23 enum DetailedViewType { |
20 LIST_VIEW, | 24 LIST_VIEW, |
21 WIFI_VIEW, | 25 WIFI_VIEW, |
22 }; | 26 }; |
23 | 27 |
24 virtual void Init() = 0; | 28 virtual void Init() = 0; |
25 virtual DetailedViewType GetViewType() const = 0; | 29 virtual DetailedViewType GetViewType() const = 0; |
26 // Updates network data and UI of the detailed view. | 30 // Updates network data and UI of the detailed view. |
27 virtual void Update() = 0; | 31 virtual void Update() = 0; |
28 | 32 |
29 protected: | 33 protected: |
30 virtual ~NetworkDetailedView() {} | 34 virtual ~NetworkDetailedView() {} |
31 }; | 35 }; |
32 | 36 |
33 } // namespace tray | 37 } // namespace tray |
34 | 38 |
35 } // namespace internal | 39 } // namespace internal |
36 } // namespace ash | 40 } // namespace ash |
37 | 41 |
38 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H | 42 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H |
OLD | NEW |