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

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: Fix single-letter typo :(. Created 8 years 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 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
OLDNEW
« no previous file with comments | « ash/system/brightness/tray_brightness.cc ('k') | ash/system/chromeos/network/network_list_detailed_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698