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

Side by Side Diff: content/public/common/manifest.h

Issue 1901363003: Remove support for the web manifest icon density member. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename test Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « content/common/manifest_manager_messages.h ('k') | content/public/common/manifest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/manifest_manager_messages.h ('k') | content/public/common/manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698