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

Side by Side Diff: ash/common/system/chromeos/power/power_status.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_POWER_STATUS_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 // Types of badges which can be drawn on top of a battery icon. 27 // Types of badges which can be drawn on top of a battery icon.
28 enum IconBadge { 28 enum IconBadge {
29 ICON_BADGE_NONE, 29 ICON_BADGE_NONE,
30 ICON_BADGE_ALERT, 30 ICON_BADGE_ALERT,
31 ICON_BADGE_BOLT, 31 ICON_BADGE_BOLT,
32 ICON_BADGE_X, 32 ICON_BADGE_X,
33 ICON_BADGE_UNRELIABLE 33 ICON_BADGE_UNRELIABLE
34 }; 34 };
35 35
36 // Different styles of battery icons. 36 // Different styles of battery icons.
37 enum IconSet { 37 enum IconSet { ICON_LIGHT, ICON_DARK };
38 ICON_LIGHT,
39 ICON_DARK
40 };
41 38
42 // Interface for classes that wish to be notified when the power status 39 // Interface for classes that wish to be notified when the power status
43 // has changed. 40 // has changed.
44 class Observer { 41 class Observer {
45 public: 42 public:
46 // Called when the power status changes. 43 // Called when the power status changes.
47 virtual void OnPowerStatusChanged() = 0; 44 virtual void OnPowerStatusChanged() = 0;
48 45
49 protected: 46 protected:
50 virtual ~Observer() {} 47 virtual ~Observer() {}
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 256
260 // Current state. 257 // Current state.
261 power_manager::PowerSupplyProperties proto_; 258 power_manager::PowerSupplyProperties proto_;
262 259
263 DISALLOW_COPY_AND_ASSIGN(PowerStatus); 260 DISALLOW_COPY_AND_ASSIGN(PowerStatus);
264 }; 261 };
265 262
266 } // namespace ash 263 } // namespace ash
267 264
268 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_H_ 265 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/enterprise/enterprise_domain_observer.h ('k') | ash/common/system/chromeos/power/power_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698