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

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

Issue 2644623004: Include Manifest.icons.purpose in manifest IPC message (Closed)
Patch Set: rebase Created 3 years, 11 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') | no next file » | 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 13 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « content/common/manifest_manager_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698