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

Unified Diff: mojo/services/notifications/public/interfaces/notifications.mojom

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 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: mojo/services/notifications/public/interfaces/notifications.mojom
diff --git a/mojo/services/notifications/public/interfaces/notifications.mojom b/mojo/services/notifications/public/interfaces/notifications.mojom
deleted file mode 100644
index df2d6717f7e999363fac6e4bb4acf6ee34ca2700..0000000000000000000000000000000000000000
--- a/mojo/services/notifications/public/interfaces/notifications.mojom
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-[DartPackage="mojo_services"]
-module notifications;
-
-struct NotificationData {
- // Title to be displayed along with the notification, if supported.
- string? title;
-
- // Text to be displayed along with the notification, if supported.
- string? text;
-};
-
-// Interaction with a posted notification will be communicated through the
-// NotificationClient. Once a NotificationClient callback has been called the
-// notification can be considered removed and subsequent Update and Cancel calls
-// to the Notification populated during Post will be ignored.
-interface NotificationClient {
- // Called when the notification is selected.
- OnSelected();
-
- // Called when the notification is dismissed.
- OnDismissed();
-};
-
-interface Notification {
- // Updates the notification with the information specified in
- // |notification_data|.
- Update(NotificationData notification_data);
-
- // Cancels the notification.
- Cancel();
-};
-
-interface NotificationService {
- // Posts a new notification with the information specified in
- // |notification_data| and with any interactions with the notification being
- // communicated to |client|. |notification| can be used to modify or cancel
- // the notification.
- Post(NotificationData notification_data, NotificationClient? client,
- Notification&? notification);
-};
« no previous file with comments | « mojo/services/notifications/public/interfaces/BUILD.gn ('k') | mojo/services/ozone_drm_gpu/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698