blob: fe7ac21db0e457eef8cb0f12a017017a92446397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H
#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 {
namespace tray {
// Abstract base class for all NetworkDetailedView derived subclasses,
// which includes NetworkWifiDetailedView and NetworkStateListDetailedView.
class NetworkDetailedView : public TrayDetailsView {
public:
enum DetailedViewType {
LIST_VIEW,
STATE_LIST_VIEW,
WIFI_VIEW,
};
explicit NetworkDetailedView(SystemTrayItem* owner)
: TrayDetailsView(owner) {
}
virtual void Init() = 0;
virtual DetailedViewType GetViewType() const = 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() = 0;
// Called when a network service property has changed.
// (Called only from TrayNetworkStateObserver).
virtual void NetworkServiceChanged(const chromeos::NetworkState* network) = 0;
protected:
virtual ~NetworkDetailedView() {}
};
} // namespace tray
} // namespace internal
} // namespace ash
#endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_DETAILED_VIEW_H
|