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_CHROMEOS_POWER_TRAY_POWER_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
6 #define ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ | 6 #define ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
7 | 7 |
8 #include "ash/system/chromeos/power/power_status.h" | 8 #include "ash/system/chromeos/power/power_status.h" |
9 #include "ash/system/tray/system_tray_item.h" | 9 #include "ash/system/tray/system_tray_item.h" |
10 | 10 |
11 class SkBitmap; | 11 class SkBitmap; |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Image; | 14 class Image; |
15 class ImageSkia; | 15 class ImageSkia; |
16 } | 16 } |
17 | 17 |
18 namespace message_center { | 18 namespace message_center { |
19 class MessageCenter; | 19 class MessageCenter; |
20 } | 20 } |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
23 namespace internal { | |
24 | |
25 namespace tray { | 23 namespace tray { |
26 class PowerNotificationView; | 24 class PowerNotificationView; |
27 class PowerTrayView; | 25 class PowerTrayView; |
28 } | 26 } |
29 | 27 |
30 class ASH_EXPORT TrayPower : public SystemTrayItem, | 28 class ASH_EXPORT TrayPower : public SystemTrayItem, |
31 public PowerStatus::Observer { | 29 public PowerStatus::Observer { |
32 public: | 30 public: |
33 // Visible for testing. | 31 // Visible for testing. |
34 enum NotificationState { | 32 enum NotificationState { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Was a USB charger connected the last time OnPowerStatusChanged() was | 102 // Was a USB charger connected the last time OnPowerStatusChanged() was |
105 // called? | 103 // called? |
106 bool usb_charger_was_connected_; | 104 bool usb_charger_was_connected_; |
107 | 105 |
108 // Was line power connected the last time onPowerStatusChanged() was called? | 106 // Was line power connected the last time onPowerStatusChanged() was called? |
109 bool line_power_was_connected_; | 107 bool line_power_was_connected_; |
110 | 108 |
111 DISALLOW_COPY_AND_ASSIGN(TrayPower); | 109 DISALLOW_COPY_AND_ASSIGN(TrayPower); |
112 }; | 110 }; |
113 | 111 |
114 } // namespace internal | |
115 } // namespace ash | 112 } // namespace ash |
116 | 113 |
117 #endif // ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ | 114 #endif // ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
OLD | NEW |