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

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

Issue 1847863002: Move notification resource loading from content/child to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address peter's comments. 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698