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

Unified Diff: ash/system/chromeos/network/network_detailed_view.h

Issue 11361274: Add NetworkStateListDetailedView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/chromeos/network/network_icon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/network/network_detailed_view.h
diff --git a/ash/system/chromeos/network/network_detailed_view.h b/ash/system/chromeos/network/network_detailed_view.h
index c08069fac2b44078ae325ce3d7146bbd05c6a073..77fc2daba442cf5212a74413ce9165396d402cb3 100644
--- a/ash/system/chromeos/network/network_detailed_view.h
+++ b/ash/system/chromeos/network/network_detailed_view.h
@@ -6,6 +6,7 @@
#define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H
#include "ash/system/tray/tray_details_view.h"
+#include "chromeos/network/network_state_handler.h"
namespace ash {
namespace internal {
@@ -16,19 +17,33 @@ namespace tray {
// which includes NetworkWifiDetailedView and NetworkListDetailedViewBase.
class NetworkDetailedView : public TrayDetailsView {
public:
- explicit NetworkDetailedView(SystemTrayItem* owner)
- : TrayDetailsView(owner) {
- }
+ typedef chromeos::NetworkStateHandler::NetworkStateList NetworkStateList;
enum DetailedViewType {
LIST_VIEW,
+ STATE_LIST_VIEW,
WIFI_VIEW,
};
+ explicit NetworkDetailedView(SystemTrayItem* owner)
+ : TrayDetailsView(owner) {
+ }
+
virtual void Init() = 0;
+
virtual DetailedViewType GetViewType() const = 0;
- // Updates network data and UI of the detailed view.
- virtual void Update() = 0;
+
+ // Called when network manager state has changed.
+ // (Generic update for NetworkTray <> AshSystemTrayDelegate interface).
+ virtual void ManagerChanged() = 0;
+
+ // Called when the contents of the network list have changed.
+ // (Called only from TrayNetworkStateObserver).
+ virtual void NetworkListChanged(const NetworkStateList& networks) = 0;
+
+ // Called when a network service property has changed.
+ // (Called only from TrayNetworkStateObserver).
+ virtual void NetworkServiceChanged(const chromeos::NetworkState* network) = 0;
protected:
virtual ~NetworkDetailedView() {}
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/chromeos/network/network_icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698