| OLD | NEW |
| 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 #include "ash/system/chromeos/power/power_status.h" | 5 #include "ash/common/system/chromeos/power/power_status.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "ash/shell.h" | |
| 11 #include "ash/shell_delegate.h" | |
| 12 #include "base/logging.h" | 10 #include "base/logging.h" |
| 13 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 15 #include "chromeos/dbus/dbus_thread_manager.h" | 13 #include "chromeos/dbus/dbus_thread_manager.h" |
| 16 #include "chromeos/dbus/power_manager_client.h" | 14 #include "chromeos/dbus/power_manager_client.h" |
| 17 #include "grit/ash_resources.h" | 15 #include "grit/ash_resources.h" |
| 18 #include "grit/ash_strings.h" | 16 #include "grit/ash_strings.h" |
| 19 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 20 #include "ui/base/l10n/time_format.h" | 18 #include "ui/base/l10n/time_format.h" |
| 21 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 } | 362 } |
| 365 | 363 |
| 366 void PowerStatus::PowerChanged( | 364 void PowerStatus::PowerChanged( |
| 367 const power_manager::PowerSupplyProperties& proto) { | 365 const power_manager::PowerSupplyProperties& proto) { |
| 368 proto_ = proto; | 366 proto_ = proto; |
| 369 SanitizeProto(&proto_); | 367 SanitizeProto(&proto_); |
| 370 FOR_EACH_OBSERVER(Observer, observers_, OnPowerStatusChanged()); | 368 FOR_EACH_OBSERVER(Observer, observers_, OnPowerStatusChanged()); |
| 371 } | 369 } |
| 372 | 370 |
| 373 } // namespace ash | 371 } // namespace ash |
| OLD | NEW |