Chromium Code Reviews| Index: content/public/common/manifest.h |
| diff --git a/content/public/common/manifest.h b/content/public/common/manifest.h |
| index 8e6ce266ef2e9fc53efbdec4ad9cca8aa6a508a6..9338faadaf42330e8098ede741b1f65249a210a6 100644 |
| --- a/content/public/common/manifest.h |
| +++ b/content/public/common/manifest.h |
| @@ -27,6 +27,11 @@ struct CONTENT_EXPORT Manifest { |
| // Structure representing an icon as per the Manifest specification, see: |
| // http://w3c.github.io/manifest/#dfn-icon-object |
| struct CONTENT_EXPORT Icon { |
| + enum IconPurpose { |
| + ANY = 0, |
| + BADGE, |
| + }; |
| + |
| Icon(); |
| Icon(const Icon& other); |
| ~Icon(); |
| @@ -46,6 +51,10 @@ struct CONTENT_EXPORT Manifest { |
| // Empty if the parsing failed, the field was not present or empty. |
| // The special value "any" is represented by gfx::Size(0, 0). |
| std::vector<gfx::Size> sizes; |
| + |
| + // Empty if the field was not present or not of type "string". Defaults to |
| + // {IconPurpose::ANY} for all other parsing exceptions. |
|
pkotwicz
2016/10/18 17:16:12
The curly braces around {IconPurpose::ANY} are new
F
2016/10/18 19:29:55
Fixed. Sorry I meant a vector with IconPurpose::AN
|
| + std::vector<IconPurpose> purpose; |
| }; |
| // Structure representing a related application. |