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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/modules/notifications/WebNotificationResources.h
diff --git a/third_party/WebKit/public/platform/modules/notifications/WebNotificationResources.h b/third_party/WebKit/public/platform/modules/notifications/WebNotificationResources.h
new file mode 100644
index 0000000000000000000000000000000000000000..d34e72a83130c92c658372e8eca90aeda1150097
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/notifications/WebNotificationResources.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebNotificationResources_h
+#define WebNotificationResources_h
+
+#include "public/platform/WebVector.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+
+namespace blink {
+
+// Structure representing the resources associated with a Web Notification.
+struct WebNotificationResources {
+ // Main icon for the notification. The bitmap may be empty if the developer
+ // did not provide an icon, or fetching of the icon failed.
+ SkBitmap icon;
+
+ // Badge for the notification. The bitmap may be empty if the developer
+ // did not provide a badge, or fetching of the badge failed.
+ SkBitmap badge;
+
+ // Icons for the actions. A bitmap may be empty if the developer did not
+ // provide an icon, or fetching of the icon failed.
+ WebVector<SkBitmap> actionIcons;
+};
+
+} // namespace blink
+
+#endif // WebNotificationResources_h

Powered by Google App Engine
This is Rietveld 408576698