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

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

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/common/system/chromeos/power/power_status.h" 10 #include "ash/common/system/chromeos/power/power_status.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 message_center::MessageCenter* message_center); 60 message_center::MessageCenter* message_center);
61 ~TrayPower() override; 61 ~TrayPower() override;
62 62
63 void NotifyUsbNotificationClosedByUser(); 63 void NotifyUsbNotificationClosedByUser();
64 64
65 private: 65 private:
66 friend class TrayPowerTest; 66 friend class TrayPowerTest;
67 67
68 // This enum is used for histogram. The existing values should not be removed, 68 // This enum is used for histogram. The existing values should not be removed,
69 // and the new values should be added just before CHARGER_TYPE_COUNT. 69 // and the new values should be added just before CHARGER_TYPE_COUNT.
70 enum ChargerType{ 70 enum ChargerType {
71 UNKNOWN_CHARGER, 71 UNKNOWN_CHARGER,
72 MAINS_CHARGER, 72 MAINS_CHARGER,
73 USB_CHARGER, 73 USB_CHARGER,
74 UNCONFIRMED_SPRING_CHARGER, 74 UNCONFIRMED_SPRING_CHARGER,
75 SAFE_SPRING_CHARGER, 75 SAFE_SPRING_CHARGER,
76 CHARGER_TYPE_COUNT, 76 CHARGER_TYPE_COUNT,
77 }; 77 };
78 78
79 // Overridden from SystemTrayItem. 79 // Overridden from SystemTrayItem.
80 views::View* CreateTrayView(LoginStatus status) override; 80 views::View* CreateTrayView(LoginStatus status) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Has the user already dismissed a low-power notification? Should be set 115 // Has the user already dismissed a low-power notification? Should be set
116 // back to false when all power sources are disconnected. 116 // back to false when all power sources are disconnected.
117 bool usb_notification_dismissed_; 117 bool usb_notification_dismissed_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(TrayPower); 119 DISALLOW_COPY_AND_ASSIGN(TrayPower);
120 }; 120 };
121 121
122 } // namespace ash 122 } // namespace ash
123 123
124 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ 124 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/power/power_status_view_unittest.cc ('k') | ash/common/system/chromeos/power/tray_power.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698