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

Side by Side 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: Reflect change in Blink patch 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 unified diff | Download patch
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 <vector> 8 #include <vector>
9 9
10 #include "base/strings/nullable_string16.h" 10 #include "base/strings/nullable_string16.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Null if the parsing failed or the field was not present. 87 // Null if the parsing failed or the field was not present.
88 base::NullableString16 short_name; 88 base::NullableString16 short_name;
89 89
90 // Empty if the parsing failed or the field was not present. 90 // Empty if the parsing failed or the field was not present.
91 GURL start_url; 91 GURL start_url;
92 92
93 // Set to DISPLAY_MODE_UNSPECIFIED if the parsing failed or the field was not 93 // Set to DISPLAY_MODE_UNSPECIFIED if the parsing failed or the field was not
94 // present. 94 // present.
95 DisplayMode display; 95 DisplayMode display;
96 96
97 // Set to -1 if parsing failed or field is not present.
mlamouri (slow - plz ping) 2015/07/16 12:35:40 Replace -1 by kInvalidOrMissingThemeColor.
Lalit Maganti 2015/07/16 14:49:01 Done
98 int64_t theme_color;
mlamouri (slow - plz ping) 2015/07/16 12:35:40 nit: I'm not sure which order you are following he
Lalit Maganti 2015/07/16 14:49:01 Done.
99
97 // Set to blink::WebScreenOrientationLockDefault if the parsing failed or the 100 // Set to blink::WebScreenOrientationLockDefault if the parsing failed or the
98 // field was not present. 101 // field was not present.
99 blink::WebScreenOrientationLockType orientation; 102 blink::WebScreenOrientationLockType orientation;
100 103
101 // Empty if the parsing failed, the field was not present, empty or all the 104 // Empty if the parsing failed, the field was not present, empty or all the
102 // icons inside the JSON array were invalid. 105 // icons inside the JSON array were invalid.
103 std::vector<Icon> icons; 106 std::vector<Icon> icons;
104 107
105 // Empty if the parsing failed, the field was not present, empty or all the 108 // Empty if the parsing failed, the field was not present, empty or all the
106 // applications inside the array were invalid. The order of the array 109 // applications inside the array were invalid. The order of the array
107 // indicates the priority of the application to use. 110 // indicates the priority of the application to use.
108 std::vector<RelatedApplication> related_applications; 111 std::vector<RelatedApplication> related_applications;
109 112
110 // A boolean that is used as a hint for the user agent to say that related 113 // A boolean that is used as a hint for the user agent to say that related
111 // applications should be preferred over the web application. False if missing 114 // applications should be preferred over the web application. False if missing
112 // or there is a parsing failure. 115 // or there is a parsing failure.
113 bool prefer_related_applications; 116 bool prefer_related_applications;
114 117
115 // This is a proprietary extension of the web Manifest, double-check that it 118 // This is a proprietary extension of the web Manifest, double-check that it
116 // is okay to use this entry. 119 // is okay to use this entry.
117 // Null if parsing failed or the field was not present. 120 // Null if parsing failed or the field was not present.
118 base::NullableString16 gcm_sender_id; 121 base::NullableString16 gcm_sender_id;
119 122
120 // Maximum length for all the strings inside the Manifest when it is sent over 123 // Maximum length for all the strings inside the Manifest when it is sent over
121 // IPC. The renderer process should truncate the strings before sending the 124 // IPC. The renderer process should truncate the strings before sending the
122 // Manifest and the browser process must do the same when receiving it. 125 // Manifest and the browser process must do the same when receiving it.
123 static const size_t kMaxIPCStringLength; 126 static const size_t kMaxIPCStringLength;
127
128 // Constant representing an invalid theme color. Set to -1.
129 static const long kInvalidThemeColor;
mlamouri (slow - plz ping) 2015/07/16 12:35:40 kInvalidOrMissingThemeColor maybe? Also, you might
Lalit Maganti 2015/07/16 14:49:01 Done.
124 }; 130 };
125 131
126 } // namespace content 132 } // namespace content
127 133
128 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_ 134 #endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698