OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_CHROMEOS_H_ | |
6 #define ASH_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_CHROMEOS_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "ash/ash_export.h" | |
11 #include "ash/common/system/audio/tray_audio.h" | |
12 #include "base/macros.h" | |
13 #include "chromeos/dbus/power_manager_client.h" | |
14 | |
15 namespace ash { | |
16 namespace tray { | |
17 class AudioDetailedView; | |
18 } | |
19 | |
20 class ASH_EXPORT TrayAudioChromeOs | |
21 : public TrayAudio, | |
22 public chromeos::PowerManagerClient::Observer { | |
23 public: | |
24 explicit TrayAudioChromeOs(SystemTray* system_tray); | |
25 ~TrayAudioChromeOs() override; | |
26 | |
27 protected: | |
28 // Overridden from TrayAudio | |
29 void Update() override; | |
30 | |
31 private: | |
32 // Overridden from SystemTrayItem. | |
33 views::View* CreateDetailedView(LoginStatus status) override; | |
34 void DestroyDetailedView() override; | |
35 | |
36 // Overridden from display::DisplayObserver. | |
37 void OnDisplayAdded(const display::Display& new_display) override; | |
38 void OnDisplayRemoved(const display::Display& old_display) override; | |
39 void OnDisplayMetricsChanged(const display::Display& display, | |
40 uint32_t changed_metrics) override; | |
41 | |
42 // Overriden from chromeos::PowerManagerClient::Observer. | |
43 void SuspendDone(const base::TimeDelta& sleep_duration) override; | |
44 | |
45 tray::AudioDetailedView* audio_detail_view_; | |
46 | |
47 DISALLOW_COPY_AND_ASSIGN(TrayAudioChromeOs); | |
48 }; | |
49 | |
50 } // namespace ash | |
51 | |
52 #endif // ASH_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_CHROMEOS_H_ | |
OLD | NEW |