OLD | NEW |
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 |
OLD | NEW |