| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebNotificationResources_h | |
| 6 #define WebNotificationResources_h | |
| 7 | |
| 8 #include "public/platform/WebVector.h" | |
| 9 #include "third_party/skia/include/core/SkBitmap.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 // Structure representing the resources associated with a Web Notification. | |
| 14 struct WebNotificationResources { | |
| 15 // 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. | |
| 17 SkBitmap icon; | |
| 18 | |
| 19 // Badge for the notification. The bitmap may be empty if the developer | |
| 20 // did not provide a badge, or fetching of the badge failed. | |
| 21 SkBitmap badge; | |
| 22 | |
| 23 // Icons for the actions. A bitmap may be empty if the developer did not | |
| 24 // provide an icon, or fetching of the icon failed. | |
| 25 WebVector<SkBitmap> actionIcons; | |
| 26 }; | |
| 27 | |
| 28 } // namespace blink | |
| 29 | |
| 30 #endif // WebNotificationResources_h | |
| OLD | NEW |