Chromium Code Reviews| 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..bc56ee2f8a61085b2d5e27df3f045c6db89f12d9 |
| --- /dev/null |
| +++ b/content/public/common/notification_resources.h |
| @@ -0,0 +1,22 @@ |
| +// 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. |
|
Peter Beverloo
2016/01/26 15:43:23
Perhaps add a TODO to clarify that more resources
Michael van Ouwerkerk
2016/01/26 16:24:21
Done.
|
| +struct CONTENT_EXPORT NotificationResources { |
| + // Main icon for the notification. The bitmap may be empty if e.g. fetching it |
| + // has failed. |
|
Peter Beverloo
2016/01/26 15:43:23
"The bitmap may be empty if the developer did not
Michael van Ouwerkerk
2016/01/26 16:24:21
Done.
|
| + SkBitmap notification_icon; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_NOTIFICATION_RESOURCES_H_ |