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

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: Removed unnecessary forward declarations. Renamed |tray| to |owner|. 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 28 matching lines...) Expand all
71 scoped_ptr<tray::NetworkMessages> messages_; 71 scoped_ptr<tray::NetworkMessages> messages_;
72 bool request_wifi_view_; 72 bool request_wifi_view_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(TrayNetwork); 74 DISALLOW_COPY_AND_ASSIGN(TrayNetwork);
75 }; 75 };
76 76
77 } // namespace internal 77 } // namespace internal
78 } // namespace ash 78 } // namespace ash
79 79
80 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H 80 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698