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

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: 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
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 f0755d78ca013c5ddc8244974de3547054f941ee..2baa4b2bc1bd7953c387ccfe77ea6127ee3755cd 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,15 +17,29 @@ namespace tray {
// which includes NetworkWifiDetailedView and NetworkListDetailedViewBase.
class NetworkDetailedView : public TrayDetailsView {
public:
+ typedef chromeos::NetworkStateHandler::NetworkStateList NetworkStateList;
+
enum DetailedViewType {
LIST_VIEW,
+ STATE_LIST_VIEW,
WIFI_VIEW,
};
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 std::string& service_path) = 0;
protected:
virtual ~NetworkDetailedView() {}

Powered by Google App Engine
This is Rietveld 408576698