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

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

Issue 15350002: Deprecate kAshDisableNewNetworkStatusArea (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 months 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 <set> 8 #include <set>
9 9
10 #include "ash/system/chromeos/network/network_icon.h" 10 #include "ash/system/chromeos/network/network_icon.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 class TrayNetwork : public SystemTrayItem, 36 class TrayNetwork : public SystemTrayItem,
37 public NetworkObserver, 37 public NetworkObserver,
38 public TrayNetworkStateObserver::Delegate { 38 public TrayNetworkStateObserver::Delegate {
39 public: 39 public:
40 explicit TrayNetwork(SystemTray* system_tray); 40 explicit TrayNetwork(SystemTray* system_tray);
41 virtual ~TrayNetwork(); 41 virtual ~TrayNetwork();
42 42
43 tray::NetworkDetailedView* detailed() { return detailed_; } 43 tray::NetworkDetailedView* detailed() { return detailed_; }
44 void set_request_wifi_view(bool b) { request_wifi_view_ = b; }
45 44
46 // SystemTrayItem 45 // SystemTrayItem
47 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE; 46 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
48 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; 47 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
49 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; 48 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
50 virtual views::View* CreateNotificationView( 49 virtual views::View* CreateNotificationView(
51 user::LoginStatus status) OVERRIDE; 50 user::LoginStatus status) OVERRIDE;
52 virtual void DestroyTrayView() OVERRIDE; 51 virtual void DestroyTrayView() OVERRIDE;
53 virtual void DestroyDefaultView() OVERRIDE; 52 virtual void DestroyDefaultView() OVERRIDE;
54 virtual void DestroyDetailedView() OVERRIDE; 53 virtual void DestroyDetailedView() OVERRIDE;
55 virtual void DestroyNotificationView() OVERRIDE; 54 virtual void DestroyNotificationView() OVERRIDE;
56 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE; 55 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
57 virtual void UpdateAfterShelfAlignmentChange( 56 virtual void UpdateAfterShelfAlignmentChange(
58 ShelfAlignment alignment) OVERRIDE; 57 ShelfAlignment alignment) OVERRIDE;
59 58
60 // NetworkObserver 59 // NetworkObserver
61 virtual void OnNetworkRefresh(const NetworkIconInfo& info) OVERRIDE;
62 virtual void SetNetworkMessage( 60 virtual void SetNetworkMessage(
63 NetworkTrayDelegate* delegate, 61 NetworkTrayDelegate* delegate,
64 MessageType message_type, 62 MessageType message_type,
65 NetworkType network_type, 63 NetworkType network_type,
66 const base::string16& title, 64 const base::string16& title,
67 const base::string16& message, 65 const base::string16& message,
68 const std::vector<base::string16>& links) OVERRIDE; 66 const std::vector<base::string16>& links) OVERRIDE;
69 virtual void ClearNetworkMessage(MessageType message_type) OVERRIDE; 67 virtual void ClearNetworkMessage(MessageType message_type) OVERRIDE;
70 virtual void OnWillToggleWifi() OVERRIDE; 68 virtual void RequestToggleWifi() OVERRIDE;
71 69
72 // TrayNetworkStateObserver::Delegate 70 // TrayNetworkStateObserver::Delegate
71 virtual void NetworkManagerChanged() OVERRIDE;
73 virtual void NetworkStateChanged(bool list_changed) OVERRIDE; 72 virtual void NetworkStateChanged(bool list_changed) OVERRIDE;
74 virtual void NetworkServiceChanged( 73 virtual void NetworkServiceChanged(
75 const chromeos::NetworkState* network) OVERRIDE; 74 const chromeos::NetworkState* network) OVERRIDE;
76 75
77 // Gets the correct icon and label for |icon_type|. Also sets |animating| 76 // Gets the correct icon and label for |icon_type|. Also sets |animating|
78 // based on whether or not the icon is animating (i.e. connecting). 77 // based on whether or not the icon is animating (i.e. connecting).
79 void GetNetworkStateHandlerImageAndLabel(network_icon::IconType icon_type, 78 void GetNetworkStateHandlerImageAndLabel(network_icon::IconType icon_type,
80 gfx::ImageSkia* image, 79 gfx::ImageSkia* image,
81 base::string16* label, 80 base::string16* label,
82 bool* animating); 81 bool* animating);
(...skipping 15 matching lines...) Expand all
98 scoped_ptr<TrayNetworkStateObserver> network_state_observer_; 97 scoped_ptr<TrayNetworkStateObserver> network_state_observer_;
99 scoped_ptr<NetworkStateNotifier> network_state_notifier_; 98 scoped_ptr<NetworkStateNotifier> network_state_notifier_;
100 99
101 DISALLOW_COPY_AND_ASSIGN(TrayNetwork); 100 DISALLOW_COPY_AND_ASSIGN(TrayNetwork);
102 }; 101 };
103 102
104 } // namespace internal 103 } // namespace internal
105 } // namespace ash 104 } // namespace ash
106 105
107 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H 106 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_NETWORK_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698