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

Unified Diff: ui/arc/notification/arc_notification_manager.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
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 032ec75e43fea6b0a424aa2374fa833158ec489d..915289c0999e0a4993785631ef78573aca810fec 100644
--- a/ui/arc/notification/arc_notification_manager.cc
+++ b/ui/arc/notification/arc_notification_manager.cc
@@ -57,7 +57,8 @@ void ArcNotificationManager::OnNotificationsInstanceClosed() {
ready_ = false;
}
-void ArcNotificationManager::OnNotificationPosted(ArcNotificationDataPtr data) {
+void ArcNotificationManager::OnNotificationPosted(
+ mojom::ArcNotificationDataPtr data) {
const std::string& key = data->key;
auto it = items_.find(key);
if (it == items_.end()) {
@@ -110,7 +111,7 @@ void ArcNotificationManager::SendNotificationRemovedFromChrome(
}
notifications_instance->SendNotificationEventToAndroid(
- key, ArcNotificationEvent::CLOSED);
+ key, mojom::ArcNotificationEvent::CLOSED);
}
void ArcNotificationManager::SendNotificationClickedOnChrome(
@@ -131,7 +132,7 @@ void ArcNotificationManager::SendNotificationClickedOnChrome(
}
notifications_instance->SendNotificationEventToAndroid(
- key, ArcNotificationEvent::BODY_CLICKED);
+ key, mojom::ArcNotificationEvent::BODY_CLICKED);
}
void ArcNotificationManager::SendNotificationButtonClickedOnChrome(
@@ -151,22 +152,22 @@ void ArcNotificationManager::SendNotificationButtonClickedOnChrome(
return;
}
- arc::ArcNotificationEvent command;
+ arc::mojom::ArcNotificationEvent command;
switch (button_index) {
case 0:
- command = ArcNotificationEvent::BUTTON_1_CLICKED;
+ command = mojom::ArcNotificationEvent::BUTTON_1_CLICKED;
break;
case 1:
- command = ArcNotificationEvent::BUTTON_2_CLICKED;
+ command = mojom::ArcNotificationEvent::BUTTON_2_CLICKED;
break;
case 2:
- command = ArcNotificationEvent::BUTTON_3_CLICKED;
+ command = mojom::ArcNotificationEvent::BUTTON_3_CLICKED;
break;
case 3:
- command = ArcNotificationEvent::BUTTON_4_CLICKED;
+ command = mojom::ArcNotificationEvent::BUTTON_4_CLICKED;
break;
case 4:
- command = ArcNotificationEvent::BUTTON_5_CLICKED;
+ command = mojom::ArcNotificationEvent::BUTTON_5_CLICKED;
break;
default:
VLOG(3) << "Invalid button index (key: " << key << ", index: " <<
@@ -177,11 +178,11 @@ void ArcNotificationManager::SendNotificationButtonClickedOnChrome(
notifications_instance->SendNotificationEventToAndroid(key, command);
}
-void ArcNotificationManager::OnToastPosted(ArcToastDataPtr data) {
+void ArcNotificationManager::OnToastPosted(mojom::ArcToastDataPtr data) {
ash::Shell::GetInstance()->toast_manager()->Show(data->text, data->duration);
}
-void ArcNotificationManager::OnToastCancelled(ArcToastDataPtr data) {
+void ArcNotificationManager::OnToastCancelled(mojom::ArcToastDataPtr data) {
// TODO(yoshiki): Implement cancel.
}
« no previous file with comments | « ui/arc/notification/arc_notification_manager.h ('k') | ui/arc/notification/arc_notification_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698