| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MANIFEST_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 6 #define CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // The Manifest structure is an internal representation of the Manifest file | 24 // The Manifest structure is an internal representation of the Manifest file |
| 25 // described in the "Manifest for Web Application" document: | 25 // described in the "Manifest for Web Application" document: |
| 26 // http://w3c.github.io/manifest/ | 26 // http://w3c.github.io/manifest/ |
| 27 struct CONTENT_EXPORT Manifest { | 27 struct CONTENT_EXPORT Manifest { |
| 28 // Structure representing an icon as per the Manifest specification, see: | 28 // Structure representing an icon as per the Manifest specification, see: |
| 29 // http://w3c.github.io/manifest/#dfn-icon-object | 29 // http://w3c.github.io/manifest/#dfn-icon-object |
| 30 struct CONTENT_EXPORT Icon { | 30 struct CONTENT_EXPORT Icon { |
| 31 enum IconPurpose { | 31 enum IconPurpose { |
| 32 ANY = 0, | 32 ANY = 0, |
| 33 BADGE, | 33 BADGE, |
| 34 ICON_PURPOSE_LAST = BADGE, |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 Icon(); | 37 Icon(); |
| 37 Icon(const Icon& other); | 38 Icon(const Icon& other); |
| 38 ~Icon(); | 39 ~Icon(); |
| 39 | 40 |
| 40 bool operator==(const Icon& other) const; | 41 bool operator==(const Icon& other) const; |
| 41 | 42 |
| 42 // MUST be a valid url. If an icon doesn't have a valid URL, it will not be | 43 // MUST be a valid url. If an icon doesn't have a valid URL, it will not be |
| 43 // successfully parsed, thus will not be represented in the Manifest. | 44 // successfully parsed, thus will not be represented in the Manifest. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 static const size_t kMaxIPCStringLength; | 164 static const size_t kMaxIPCStringLength; |
| 164 | 165 |
| 165 // Constant representing an invalid color. Set to a value outside the | 166 // Constant representing an invalid color. Set to a value outside the |
| 166 // range of a 32-bit integer. | 167 // range of a 32-bit integer. |
| 167 static const int64_t kInvalidOrMissingColor; | 168 static const int64_t kInvalidOrMissingColor; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace content | 171 } // namespace content |
| 171 | 172 |
| 172 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 173 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| OLD | NEW |