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

Side by Side Diff: third_party/WebKit/public/platform/modules/notifications/WebNotificationResources.h

Issue 2261283002: Add Notification images (Blink + desktop implementation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check IPC drawsNothing rather than isNull Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/public/platform/modules/notifications/WebNotificationData.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WebNotificationResources_h 5 #ifndef WebNotificationResources_h
6 #define WebNotificationResources_h 6 #define WebNotificationResources_h
7 7
8 #include "public/platform/WebVector.h" 8 #include "public/platform/WebVector.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 // Structure representing the resources associated with a Web Notification. 13 // Structure representing the resources associated with a Web Notification.
14 struct WebNotificationResources { 14 struct WebNotificationResources {
15 // Content image for the notification. The bitmap may be empty if the
16 // developer did not provide an image, or fetching of the image failed.
17 SkBitmap image;
18
15 // Main icon for the notification. The bitmap may be empty if the developer 19 // Main icon for the notification. The bitmap may be empty if the developer
16 // did not provide an icon, or fetching of the icon failed. 20 // did not provide an icon, or fetching of the icon failed.
17 SkBitmap icon; 21 SkBitmap icon;
18 22
19 // Badge for the notification. The bitmap may be empty if the developer 23 // Badge for the notification. The bitmap may be empty if the developer
20 // did not provide a badge, or fetching of the badge failed. 24 // did not provide a badge, or fetching of the badge failed.
21 SkBitmap badge; 25 SkBitmap badge;
22 26
23 // Icons for the actions. A bitmap may be empty if the developer did not 27 // Icons for the actions. A bitmap may be empty if the developer did not
24 // provide an icon, or fetching of the icon failed. 28 // provide an icon, or fetching of the icon failed.
25 WebVector<SkBitmap> actionIcons; 29 WebVector<SkBitmap> actionIcons;
26 }; 30 };
27 31
28 } // namespace blink 32 } // namespace blink
29 33
30 #endif // WebNotificationResources_h 34 #endif // WebNotificationResources_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/modules/notifications/WebNotificationData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698