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

Side by Side Diff: content/public/common/notification_resources.h

Issue 1620203004: Notification action icons prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make it work on Android and clean up. Created 4 years, 10 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 CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
6 #define CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
7
8 #include <vector>
9
10 #include "content/common/content_export.h"
11 #include "third_party/skia/include/core/SkBitmap.h"
12
13 namespace content {
14
15 // Structure to hold the resources associated with a Web Notification.
16 struct CONTENT_EXPORT NotificationResources {
17 // Main icon for the notification. The bitmap may be empty if e.g. fetching it
18 // has failed.
19 SkBitmap notification_icon;
20
21 // Icons for the actions. A bitmap may be empty if e.g. a fetch has failed.
22 std::vector<SkBitmap> action_icons;
23 };
24
25 } // namespace content
26
27 #endif // CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
OLDNEW
« no previous file with comments | « content/public/browser/platform_notification_service.h ('k') | content/public/common/platform_notification_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698