OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_AUDIO_TRAY_VOLUME_H_ | 5 #ifndef ASH_SYSTEM_AUDIO_TRAY_VOLUME_H_ |
6 #define ASH_SYSTEM_AUDIO_TRAY_VOLUME_H_ | 6 #define ASH_SYSTEM_AUDIO_TRAY_VOLUME_H_ |
7 | 7 |
8 #include "ash/system/audio/audio_observer.h" | 8 #include "ash/system/audio/audio_observer.h" |
9 #include "ash/system/tray/tray_image_item.h" | 9 #include "ash/system/tray/tray_image_item.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | |
13 class SystemTray; | |
stevenjb
2012/11/16 17:41:43
nit: SystemTray is part of the base class construc
bartfab (slow)
2012/11/16 18:45:34
Done.
| |
14 | |
12 namespace internal { | 15 namespace internal { |
13 | 16 |
14 namespace tray { | 17 namespace tray { |
15 class VolumeView; | 18 class VolumeView; |
16 } | 19 } |
17 | 20 |
18 class TrayVolume : public TrayImageItem, | 21 class TrayVolume : public TrayImageItem, |
19 public AudioObserver { | 22 public AudioObserver { |
20 public: | 23 public: |
21 TrayVolume(); | 24 explicit TrayVolume(SystemTray* system_tray); |
22 virtual ~TrayVolume(); | 25 virtual ~TrayVolume(); |
23 | 26 |
24 private: | 27 private: |
25 // Overridden from TrayImageItem. | 28 // Overridden from TrayImageItem. |
26 virtual bool GetInitialVisibility() OVERRIDE; | 29 virtual bool GetInitialVisibility() OVERRIDE; |
27 | 30 |
28 // Overridden from SystemTrayItem. | 31 // Overridden from SystemTrayItem. |
29 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; | 32 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; |
30 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; | 33 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; |
31 virtual void DestroyDefaultView() OVERRIDE; | 34 virtual void DestroyDefaultView() OVERRIDE; |
(...skipping 11 matching lines...) Expand all Loading... | |
43 // inappropriately in DestroyDefaultView() or DestroyDetailedView(). | 46 // inappropriately in DestroyDefaultView() or DestroyDetailedView(). |
44 bool is_default_view_; | 47 bool is_default_view_; |
45 | 48 |
46 DISALLOW_COPY_AND_ASSIGN(TrayVolume); | 49 DISALLOW_COPY_AND_ASSIGN(TrayVolume); |
47 }; | 50 }; |
48 | 51 |
49 } // namespace internal | 52 } // namespace internal |
50 } // namespace ash | 53 } // namespace ash |
51 | 54 |
52 #endif // ASH_SYSTEM_AUDIO_TRAY_VOLUME_H_ | 55 #endif // ASH_SYSTEM_AUDIO_TRAY_VOLUME_H_ |
OLD | NEW |