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

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

Issue 1644083002: Fetch notification action icons and pass them through in resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ActionIconBlink
Patch Set: Rebase. 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/common/notification_resources.cc » ('j') | 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 CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
6 #define CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_ 6 #define CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
7 7
8 #include <vector>
9
8 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
10 12
11 namespace content { 13 namespace content {
12 14
13 // Structure to hold the resources associated with a Web Notification. 15 // Structure to hold the resources associated with a Web Notification.
14 // TODO(mvanouwerkerk): Add resources for e.g. action icons - crbug.com/581336.
15 struct CONTENT_EXPORT NotificationResources { 16 struct CONTENT_EXPORT NotificationResources {
17 NotificationResources();
18 ~NotificationResources();
19
16 // Main icon for the notification. The bitmap may be empty if the developer 20 // Main icon for the notification. The bitmap may be empty if the developer
17 // did not provide an icon, or fetching of the icon failed. 21 // did not provide an icon, or fetching of the icon failed.
18 SkBitmap notification_icon; 22 SkBitmap notification_icon;
23
24 // Icons for the actions. A bitmap may be empty if the developer did not
25 // provide an icon, or fetching of the icon failed.
26 std::vector<SkBitmap> action_icons;
19 }; 27 };
20 28
21 } // namespace content 29 } // namespace content
22 30
23 #endif // CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_ 31 #endif // CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/common/notification_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698