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

Unified Diff: ui/arc/notification/arc_notification_item.cc

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/arc/notification/arc_notification_item.h ('k') | ui/arc/notification/arc_notification_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_item.cc
diff --git a/ui/arc/notification/arc_notification_item.cc b/ui/arc/notification/arc_notification_item.cc
index f0d791bbe90a717801dd2373026421d141a116f1..dc7288546f67f9027a7a9f57c14738782afb4e74 100644
--- a/ui/arc/notification/arc_notification_item.cc
+++ b/ui/arc/notification/arc_notification_item.cc
@@ -89,7 +89,7 @@ ArcNotificationItem::ArcNotificationItem(
weak_ptr_factory_(this) {}
void ArcNotificationItem::UpdateWithArcNotificationData(
- const ArcNotificationData& data) {
+ const mojom::ArcNotificationData& data) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(notification_key_ == data.key);
@@ -109,15 +109,15 @@ void ArcNotificationItem::UpdateWithArcNotificationData(
message_center::NotificationType type;
switch (data.type) {
- case ArcNotificationType::BASIC:
+ case mojom::ArcNotificationType::BASIC:
type = message_center::NOTIFICATION_TYPE_BASE_FORMAT;
break;
- case ArcNotificationType::IMAGE:
+ case mojom::ArcNotificationType::IMAGE:
// TODO(yoshiki): Implement this types.
type = message_center::NOTIFICATION_TYPE_BASE_FORMAT;
LOG(ERROR) << "Unsupported notification type: image";
break;
- case ArcNotificationType::PROGRESS:
+ case mojom::ArcNotificationType::PROGRESS:
type = message_center::NOTIFICATION_TYPE_PROGRESS;
rich_data.timestamp = base::Time::UnixEpoch() +
base::TimeDelta::FromMilliseconds(data.time);
@@ -209,7 +209,7 @@ void ArcNotificationItem::OnImageDecoded(const SkBitmap& bitmap) {
if (newer_data_) {
// There is the newer data, so updates again.
- ArcNotificationDataPtr data(std::move(newer_data_));
+ mojom::ArcNotificationDataPtr data(std::move(newer_data_));
UpdateWithArcNotificationData(*data);
}
}
« no previous file with comments | « ui/arc/notification/arc_notification_item.h ('k') | ui/arc/notification/arc_notification_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698