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

Side by Side Diff: ash/system/power/battery_notification.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase 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
« no previous file with comments | « ash/system/power/battery_notification.h ('k') | ash/system/power/dual_role_notification.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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/common/system/chromeos/power/battery_notification.h" 5 #include "ash/system/power/battery_notification.h"
6 6
7 #include "ash/common/system/chromeos/power/power_status.h"
8 #include "ash/common/system/system_notifier.h"
9 #include "ash/resources/grit/ash_resources.h" 7 #include "ash/resources/grit/ash_resources.h"
10 #include "ash/strings/grit/ash_strings.h" 8 #include "ash/strings/grit/ash_strings.h"
9 #include "ash/system/power/power_status.h"
10 #include "ash/system/system_notifier.h"
11 #include "base/i18n/message_formatter.h" 11 #include "base/i18n/message_formatter.h"
12 #include "base/i18n/time_formatting.h" 12 #include "base/i18n/time_formatting.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/l10n/time_format.h" 16 #include "ui/base/l10n/time_format.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/gfx/image/image.h" 18 #include "ui/gfx/image/image.h"
19 #include "ui/message_center/message_center.h" 19 #include "ui/message_center/message_center.h"
20 #include "ui/message_center/notification.h" 20 #include "ui/message_center/notification.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 void BatteryNotification::Update( 103 void BatteryNotification::Update(
104 TrayPower::NotificationState notification_state) { 104 TrayPower::NotificationState notification_state) {
105 if (message_center_->FindVisibleNotificationById(kBatteryNotificationId)) { 105 if (message_center_->FindVisibleNotificationById(kBatteryNotificationId)) {
106 message_center_->UpdateNotification(kBatteryNotificationId, 106 message_center_->UpdateNotification(kBatteryNotificationId,
107 CreateNotification(notification_state)); 107 CreateNotification(notification_state));
108 } 108 }
109 } 109 }
110 110
111 } // namespace ash 111 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/power/battery_notification.h ('k') | ash/system/power/dual_role_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698