Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Side by Side Diff: ash/common/system/chromeos/power/battery_notification.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_COMMON_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/common/system/chromeos/power/tray_power.h"
10 #include "base/macros.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 TrayPower::NotificationState notification_state);
23 ~BatteryNotification();
24
25 // Updates the notification if it still exists.
26 void Update(TrayPower::NotificationState notification_state);
27
28 private:
29 message_center::MessageCenter* message_center_;
30
31 DISALLOW_COPY_AND_ASSIGN(BatteryNotification);
32 };
33
34 } // namespace ash
35
36 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_BATTERY_NOTIFICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698