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

Unified Diff: content/public/common/notification_resources.h

Issue 1634933006: Use NotificationResources instead of a bare SkBitmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests. Created 4 years, 11 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: content/public/common/notification_resources.h
diff --git a/content/public/common/notification_resources.h b/content/public/common/notification_resources.h
new file mode 100644
index 0000000000000000000000000000000000000000..8986f96bee6fb08f88c7e2eba83d5f41f62cf16b
--- /dev/null
+++ b/content/public/common/notification_resources.h
@@ -0,0 +1,23 @@
+// 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 CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
+#define CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_
+
+#include "content/common/content_export.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+
+namespace content {
+
+// Structure to hold the resources associated with a Web Notification.
+// TODO(mvanouwerkerk): Add resources for e.g. action icons - crbug.com/581336.
+struct CONTENT_EXPORT NotificationResources {
+ // 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 notification_icon;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_

Powered by Google App Engine
This is Rietveld 408576698