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

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

Issue 1978313002: Support cancelling toast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::deque instead of vector Created 4 years, 7 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 | « components/arc/common/notifications.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_manager.cc
diff --git a/ui/arc/notification/arc_notification_manager.cc b/ui/arc/notification/arc_notification_manager.cc
index 915289c0999e0a4993785631ef78573aca810fec..91bcd496da42e16e8bfc782642997d04ab5b5d24 100644
--- a/ui/arc/notification/arc_notification_manager.cc
+++ b/ui/arc/notification/arc_notification_manager.cc
@@ -179,11 +179,12 @@ void ArcNotificationManager::SendNotificationButtonClickedOnChrome(
}
void ArcNotificationManager::OnToastPosted(mojom::ArcToastDataPtr data) {
- ash::Shell::GetInstance()->toast_manager()->Show(data->text, data->duration);
+ ash::Shell::GetInstance()->toast_manager()->Show(
+ ash::ToastData(data->id, data->text, data->duration));
}
void ArcNotificationManager::OnToastCancelled(mojom::ArcToastDataPtr data) {
- // TODO(yoshiki): Implement cancel.
+ ash::Shell::GetInstance()->toast_manager()->Cancel(data->id);
}
} // namespace arc
« no previous file with comments | « components/arc/common/notifications.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698