OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BATTERY_NOTIFICATION_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ |
6 #define ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ | 6 #define ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ |
7 | 7 |
8 #include <memory> | |
oshima
2016/04/08 07:09:41
remove this?
| |
9 | |
8 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
9 #include "ash/system/chromeos/power/tray_power.h" | 11 #include "ash/system/chromeos/power/tray_power.h" |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 | 13 |
13 namespace message_center { | 14 namespace message_center { |
14 class MessageCenter; | 15 class MessageCenter; |
15 } | 16 } |
16 | 17 |
17 namespace ash { | 18 namespace ash { |
18 | 19 |
19 // Class for showing and hiding a MessageCenter low battery notification. | 20 // Class for showing and hiding a MessageCenter low battery notification. |
20 class ASH_EXPORT BatteryNotification { | 21 class ASH_EXPORT BatteryNotification { |
21 public: | 22 public: |
22 BatteryNotification(message_center::MessageCenter* message_center, | 23 BatteryNotification(message_center::MessageCenter* message_center, |
23 TrayPower::NotificationState notification_state); | 24 TrayPower::NotificationState notification_state); |
24 ~BatteryNotification(); | 25 ~BatteryNotification(); |
25 | 26 |
26 // Updates the notification if it still exists. | 27 // Updates the notification if it still exists. |
27 void Update(TrayPower::NotificationState notification_state); | 28 void Update(TrayPower::NotificationState notification_state); |
28 | 29 |
29 private: | 30 private: |
30 message_center::MessageCenter* message_center_; | 31 message_center::MessageCenter* message_center_; |
31 | 32 |
32 DISALLOW_COPY_AND_ASSIGN(BatteryNotification); | 33 DISALLOW_COPY_AND_ASSIGN(BatteryNotification); |
33 }; | 34 }; |
34 | 35 |
35 } // namespace ash | 36 } // namespace ash |
36 | 37 |
37 #endif // ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ | 38 #endif // ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ |
OLD | NEW |