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

Side by Side Diff: ash/system/chromeos/network/tray_network.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, 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_TRAY_NETWORK_H 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H
7 7
8 #include "ash/system/chromeos/network/network_observer.h" 8 #include "ash/system/chromeos/network/network_observer.h"
9 #include "ash/system/tray/system_tray_item.h" 9 #include "ash/system/tray/system_tray_item.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 class TrayNetwork : public SystemTrayItem, 24 class TrayNetwork : public SystemTrayItem,
25 public NetworkObserver { 25 public NetworkObserver {
26 public: 26 public:
27 enum DetailedViewType { 27 enum DetailedViewType {
28 LIST_VIEW, 28 LIST_VIEW,
29 WIFI_VIEW, 29 WIFI_VIEW,
30 }; 30 };
31 31
32 TrayNetwork(); 32 explicit TrayNetwork(SystemTray* system_tray);
33 virtual ~TrayNetwork(); 33 virtual ~TrayNetwork();
34 34
35 // Overridden from SystemTrayItem. 35 // Overridden from SystemTrayItem.
36 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE; 36 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
37 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; 37 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
38 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; 38 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
39 virtual views::View* CreateNotificationView( 39 virtual views::View* CreateNotificationView(
40 user::LoginStatus status) OVERRIDE; 40 user::LoginStatus status) OVERRIDE;
41 virtual void DestroyTrayView() OVERRIDE; 41 virtual void DestroyTrayView() OVERRIDE;
42 virtual void DestroyDefaultView() OVERRIDE; 42 virtual void DestroyDefaultView() OVERRIDE;
(...skipping 29 matching lines...) Expand all
72 scoped_ptr<tray::NetworkMessages> messages_; 72 scoped_ptr<tray::NetworkMessages> messages_;
73 bool request_wifi_view_; 73 bool request_wifi_view_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(TrayNetwork); 75 DISALLOW_COPY_AND_ASSIGN(TrayNetwork);
76 }; 76 };
77 77
78 } // namespace internal 78 } // namespace internal
79 } // namespace ash 79 } // namespace ash
80 80
81 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H 81 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/network_list_detailed_view_base.cc ('k') | ash/system/chromeos/network/tray_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698