| 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 22 matching lines...) Expand all Loading... |
| 33 // MUST be a valid url. If an icon doesn't have a valid URL, it will not be | 33 // MUST be a valid url. If an icon doesn't have a valid URL, it will not be |
| 34 // successfully parsed, thus will not be represented in the Manifest. | 34 // successfully parsed, thus will not be represented in the Manifest. |
| 35 GURL src; | 35 GURL src; |
| 36 | 36 |
| 37 // Null if the parsing failed or the field was not present. The type can be | 37 // Null if the parsing failed or the field was not present. The type can be |
| 38 // any string and doesn't have to be a valid image MIME type at this point. | 38 // any string and doesn't have to be a valid image MIME type at this point. |
| 39 // It is up to the consumer of the object to check if the type matches a | 39 // It is up to the consumer of the object to check if the type matches a |
| 40 // supported type. | 40 // supported type. |
| 41 base::NullableString16 type; | 41 base::NullableString16 type; |
| 42 | 42 |
| 43 // Default value is 1.0 if the value is missing or invalid. | |
| 44 double density; | |
| 45 | |
| 46 // Empty if the parsing failed, the field was not present or empty. | 43 // Empty if the parsing failed, the field was not present or empty. |
| 47 // The special value "any" is represented by gfx::Size(0, 0). | 44 // The special value "any" is represented by gfx::Size(0, 0). |
| 48 std::vector<gfx::Size> sizes; | 45 std::vector<gfx::Size> sizes; |
| 49 | |
| 50 // Default density. Set to 1.0. | |
| 51 static const double kDefaultDensity; | |
| 52 }; | 46 }; |
| 53 | 47 |
| 54 // Structure representing a related application. | 48 // Structure representing a related application. |
| 55 struct CONTENT_EXPORT RelatedApplication { | 49 struct CONTENT_EXPORT RelatedApplication { |
| 56 RelatedApplication(); | 50 RelatedApplication(); |
| 57 ~RelatedApplication(); | 51 ~RelatedApplication(); |
| 58 | 52 |
| 59 // The platform on which the application can be found. This can be any | 53 // The platform on which the application can be found. This can be any |
| 60 // string, and is interpreted by the consumer of the object. Empty if the | 54 // string, and is interpreted by the consumer of the object. Empty if the |
| 61 // parsing failed. | 55 // parsing failed. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 static const size_t kMaxIPCStringLength; | 129 static const size_t kMaxIPCStringLength; |
| 136 | 130 |
| 137 // Constant representing an invalid color. Set to a value outside the | 131 // Constant representing an invalid color. Set to a value outside the |
| 138 // range of a 32-bit integer. | 132 // range of a 32-bit integer. |
| 139 static const int64_t kInvalidOrMissingColor; | 133 static const int64_t kInvalidOrMissingColor; |
| 140 }; | 134 }; |
| 141 | 135 |
| 142 } // namespace content | 136 } // namespace content |
| 143 | 137 |
| 144 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ | 138 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ |
| OLD | NEW |