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

Unified Diff: third_party/WebKit/public/platform/modules/notifications/notification_resources.mojom

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: resolves the promise 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: third_party/WebKit/public/platform/modules/notifications/notification_resources.mojom
diff --git a/chrome/common/image_decoder.mojom b/third_party/WebKit/public/platform/modules/notifications/notification_resources.mojom
similarity index 50%
copy from chrome/common/image_decoder.mojom
copy to third_party/WebKit/public/platform/modules/notifications/notification_resources.mojom
index 325f0369b6cf657746b9e4580e65b97c7ec4cd85..dfa4461197b2fd24e1f2b0ccdbaed9903257eec1 100644
--- a/chrome/common/image_decoder.mojom
+++ b/third_party/WebKit/public/platform/modules/notifications/notification_resources.mojom
@@ -2,17 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module mojom;
+module blink.mojom;
import "third_party/WebKit/public/platform/bitmap.mojom";
-enum ImageCodec {
- DEFAULT,
- ROBUST_JPEG,
- ROBUST_PNG,
-};
-
-interface ImageDecoder {
- DecodeImage(array<uint8> encoded_data, ImageCodec codec, bool shrink_to_fit)
- => (blink.mojom.Bitmap? decoded_image);
+// Structure representing the resources associated with a Web Notification.
+struct NotificationResources {
+ Bitmap icon;
+ Bitmap badge;
+ array<Bitmap> action_icons;
};

Powered by Google App Engine
This is Rietveld 408576698