Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: ash/system/chromeos/network/network_detailed_view.h

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified CL to provide TrayItems and Tray*Views with parent pointers instead. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
12 class SystemTrayItem;
13
11 namespace internal { 14 namespace internal {
12 15
13 namespace tray { 16 namespace tray {
14 17
15 // Abstract base class for all NetworkDetailedView derived subclasses, 18 // Abstract base class for all NetworkDetailedView derived subclasses,
16 // which includes NetworkWifiDetailedView and NetworkListDetailedViewBase. 19 // which includes NetworkWifiDetailedView and NetworkListDetailedViewBase.
17 class NetworkDetailedView : public TrayDetailsView { 20 class NetworkDetailedView : public TrayDetailsView {
18 public: 21 public:
22 explicit NetworkDetailedView(SystemTrayItem* tray) : TrayDetailsView(tray) {}
23
19 enum DetailedViewType { 24 enum DetailedViewType {
20 LIST_VIEW, 25 LIST_VIEW,
21 WIFI_VIEW, 26 WIFI_VIEW,
22 }; 27 };
23 28
24 virtual void Init() = 0; 29 virtual void Init() = 0;
25 virtual DetailedViewType GetViewType() const = 0; 30 virtual DetailedViewType GetViewType() const = 0;
26 // Updates network data and UI of the detailed view. 31 // Updates network data and UI of the detailed view.
27 virtual void Update() = 0; 32 virtual void Update() = 0;
28 33
29 protected: 34 protected:
30 virtual ~NetworkDetailedView() {} 35 virtual ~NetworkDetailedView() {}
31 }; 36 };
32 37
33 } // namespace tray 38 } // namespace tray
34 39
35 } // namespace internal 40 } // namespace internal
36 } // namespace ash 41 } // namespace ash
37 42
38 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H 43 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698