blob: 0806ccd9d18891e9454faae753b423c43f85db6a (
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
|
// 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_BLUETOOTH_TRAY_BLUETOOTH_H_
#define ASH_SYSTEM_BLUETOOTH_TRAY_BLUETOOTH_H_
#include "ash/system/bluetooth/bluetooth_observer.h"
#include "ash/system/tray/system_tray_item.h"
#include "base/macros.h"
namespace ash {
namespace tray {
class BluetoothDefaultView;
class BluetoothDetailedView;
}
class TrayBluetooth : public SystemTrayItem,
public BluetoothObserver {
public:
explicit TrayBluetooth(SystemTray* system_tray);
~TrayBluetooth() override;
private:
// Overridden from SystemTrayItem.
views::View* CreateTrayView(user::LoginStatus status) override;
views::View* CreateDefaultView(user::LoginStatus status) override;
views::View* CreateDetailedView(user::LoginStatus status) override;
void DestroyTrayView() override;
void DestroyDefaultView() override;
void DestroyDetailedView() override;
void UpdateAfterLoginStatusChange(user::LoginStatus status) override;
// Overridden from BluetoothObserver.
void OnBluetoothRefresh() override;
void OnBluetoothDiscoveringChanged() override;
tray::BluetoothDefaultView* default_;
tray::BluetoothDetailedView* detailed_;
DISALLOW_COPY_AND_ASSIGN(TrayBluetooth);
};
} // namespace ash
#endif // ASH_SYSTEM_BLUETOOTH_TRAY_BLUETOOTH_H_
|