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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojom; 5 module blink.mojom;
6 6
7 import "third_party/WebKit/public/platform/bitmap.mojom"; 7 import "third_party/WebKit/public/platform/bitmap.mojom";
8 8
9 enum ImageCodec { 9 // Structure representing the resources associated with a Web Notification.
10 DEFAULT, 10 struct NotificationResources {
11 ROBUST_JPEG, 11 Bitmap icon;
12 ROBUST_PNG, 12 Bitmap badge;
13 array<Bitmap> action_icons;
13 }; 14 };
14
15 interface ImageDecoder {
16 DecodeImage(array<uint8> encoded_data, ImageCodec codec, bool shrink_to_fit)
17 => (blink.mojom.Bitmap? decoded_image);
18 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698