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

Unified Diff: content/public/common/manifest.h

Issue 591073002: Add support for Manifest.icons.sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_icons
Patch Set: rebase Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/manifest_manager_messages.h ('k') | content/renderer/manifest/manifest_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/manifest.h
diff --git a/content/public/common/manifest.h b/content/public/common/manifest.h
index 93bd342399a6e33c8bd08d95140d416b0f3e2aec..4fb4d64ceb8ff80f7ebbcae2b140b2369b04b2d4 100644
--- a/content/public/common/manifest.h
+++ b/content/public/common/manifest.h
@@ -10,6 +10,7 @@
#include "base/strings/nullable_string16.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
+#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
namespace content {
@@ -45,6 +46,10 @@ struct CONTENT_EXPORT Manifest {
// Default value is 1.0 if the value is missing or invalid.
double density;
+ // 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;
+
// Default density. Set to 1.0.
static const double kDefaultDensity;
};
« no previous file with comments | « content/common/manifest_manager_messages.h ('k') | content/renderer/manifest/manifest_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698