Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_SYSTEM_POWER_POWER_STATUS_OBSERVER_H_ | 5 #ifndef ASH_SYSTEM_POWER_POWER_STATUS_OBSERVER_H_ |
| 6 #define ASH_SYSTEM_POWER_POWER_STATUS_OBSERVER_H_ | 6 #define ASH_SYSTEM_POWER_POWER_STATUS_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace ash { | 8 namespace chromeos { |
|
oshima
2012/03/24 06:46:04
did you mean to move this to chromeos/dbus?
hashimoto
2012/03/24 07:36:00
I want to move this to ::chromeos because PowerMan
oshima
2012/03/24 19:15:30
Not sure if I understand. Can you elaborate?
hashimoto
2012/03/25 07:09:31
The reason why I place PowerSupplyStatus under nam
| |
| 9 | 9 |
| 10 struct PowerSupplyStatus; | 10 struct PowerSupplyStatus; |
| 11 | 11 |
| 12 } // namespace chromeos | |
| 13 | |
| 14 namespace ash { | |
| 15 | |
| 12 class PowerStatusObserver { | 16 class PowerStatusObserver { |
| 13 public: | 17 public: |
| 14 virtual ~PowerStatusObserver() {} | 18 virtual ~PowerStatusObserver() {} |
| 15 | 19 |
| 16 virtual void OnPowerStatusChanged(const PowerSupplyStatus& status) = 0; | 20 virtual void OnPowerStatusChanged( |
| 21 const chromeos::PowerSupplyStatus& status) = 0; | |
| 17 }; | 22 }; |
| 18 | 23 |
| 19 }; | 24 }; |
| 20 | 25 |
| 21 #endif // ASH_SYSTEM_POWER_POWER_STATUS_OBSERVER_H_ | 26 #endif // ASH_SYSTEM_POWER_POWER_STATUS_OBSERVER_H_ |
| OLD | NEW |