| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 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 | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ | 
|  | 6 #define ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ | 
|  | 7 | 
|  | 8 #include "ash/ash_export.h" | 
|  | 9 #include "ash/system/chromeos/power/tray_power.h" | 
|  | 10 #include "base/memory/scoped_ptr.h" | 
|  | 11 | 
|  | 12 namespace message_center { | 
|  | 13 class MessageCenter; | 
|  | 14 } | 
|  | 15 | 
|  | 16 namespace ash { | 
|  | 17 | 
|  | 18 // Class for showing and hiding a MessageCenter low battery notification. | 
|  | 19 class ASH_EXPORT BatteryNotification { | 
|  | 20  public: | 
|  | 21   BatteryNotification(message_center::MessageCenter* message_center); | 
|  | 22 | 
|  | 23   // Shows the notification, ensuring that new notifications are made visible | 
|  | 24   // by removing rather than updating them in the MessageCenter. | 
|  | 25   void Show(TrayPower::NotificationState notification_state); | 
|  | 26   // Removes the notification. | 
|  | 27   void Hide(); | 
|  | 28   // Updates an existing notification. | 
|  | 29   void Update(TrayPower::NotificationState notification_state); | 
|  | 30 | 
|  | 31  private: | 
|  | 32   message_center::MessageCenter* message_center_; | 
|  | 33 | 
|  | 34   DISALLOW_COPY_AND_ASSIGN(BatteryNotification); | 
|  | 35 }; | 
|  | 36 | 
|  | 37 }  // namespace ash | 
|  | 38 | 
|  | 39 #endif  // ASH_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_ | 
| OLD | NEW | 
|---|