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

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

Issue 1235883007: manifest: add theme_color value to the manifest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some small mistakes Created 5 years, 5 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
Index: content/public/common/manifest.h
diff --git a/content/public/common/manifest.h b/content/public/common/manifest.h
index 43bef5bee75f500d1233d3e80ba23a4a22c8e9c9..8fadf6e663aa8c74e366375d8b3e55fcfb22df4b 100644
--- a/content/public/common/manifest.h
+++ b/content/public/common/manifest.h
@@ -112,6 +112,10 @@ struct CONTENT_EXPORT Manifest {
// or there is a parsing failure.
bool prefer_related_applications;
+ // Set to kInvalidOrMissingThemeColor if parsing failed or field is not
+ // present.
+ int64_t theme_color;
+
// This is a proprietary extension of the web Manifest, double-check that it
// is okay to use this entry.
// Null if parsing failed or the field was not present.
@@ -121,6 +125,9 @@ struct CONTENT_EXPORT Manifest {
// IPC. The renderer process should truncate the strings before sending the
// Manifest and the browser process must do the same when receiving it.
static const size_t kMaxIPCStringLength;
+
+ // Constant representing an invalid theme color. Set to -1.
+ static const int64_t kInvalidOrMissingThemeColor;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698